]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/theme.php
Wordpress 2.6.2
[autoinstalls/wordpress.git] / wp-admin / includes / theme.php
index bd39dea20f74b1c30b72f20629c7f818c073fa76..ec670ce6a3764f176ac4b5a5b790d73a1afcb554 100644 (file)
@@ -14,6 +14,7 @@ function current_theme_info() {
        $ct->screenshot = $themes[$current_theme]['Screenshot'];
        $ct->description = $themes[$current_theme]['Description'];
        $ct->author = $themes[$current_theme]['Author'];
+       $ct->tags = $themes[$current_theme]['Tags'];
        return $ct;
 }
 
@@ -32,7 +33,7 @@ function get_page_templates() {
 
        if ( is_array( $templates ) ) {
                foreach ( $templates as $template ) {
-                       $template_data = implode( '', file( ABSPATH.$template ));
+                       $template_data = implode( '', file( WP_CONTENT_DIR.$template ));
 
                        preg_match( '|Template Name:(.*)$|mi', $template_data, $name );
                        preg_match( '|Description:(.*)$|mi', $template_data, $description );