$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;
}
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 );