Changeset 6530
- Timestamp:
- 12/31/2007 06:39:43 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/theme.php
r5700 r6530 15 15 $ct->description = $themes[$current_theme]['Description']; 16 16 $ct->author = $themes[$current_theme]['Author']; 17 $ct->tags = $themes[$current_theme]['Tags']; 17 18 return $ct; 18 19 } -
trunk/wp-admin/themes.php
r6334 r6530 41 41 <p><?php printf(__('All of this theme’s files are located in <code>%2$s</code>.'), $ct->title, $ct->template_dir, $ct->stylesheet_dir); ?></p> 42 42 <?php } ?> 43 <?php if ( $ct->tags ) : ?> 44 <p><?php _e('Tags:'); ?> <?php echo join(', ', $ct->tags); ?></p> 45 <?php endif; ?> 43 46 </div> 44 47 … … 63 66 $screenshot = $themes[$theme_name]['Screenshot']; 64 67 $stylesheet_dir = $themes[$theme_name]['Stylesheet Dir']; 68 $tags = $themes[$theme_name]['Tags']; 65 69 $activate_link = wp_nonce_url("themes.php?action=activate&template=".urlencode($template)."&stylesheet=".urlencode($stylesheet), 'switch-theme_' . $template); 66 70 ?> … … 75 79 76 80 <p><?php echo $description; ?></p> 81 <?php if ( $tags ) : ?> 82 <p><?php _e('Tags:'); ?> <?php echo join(', ', $tags); ?></p> 83 <?php endif; ?> 77 84 </div> 78 85 <?php } // end foreach theme_names ?> -
trunk/wp-content/themes/classic/style.css
r5392 r6530 5 5 Version: 1.5 6 6 Author: Dave Shea 7 Tags: mantle color, variable width, two columns, widgets 7 8 8 9 Default WordPress by Dave Shea || http://mezzoblue.com -
trunk/wp-content/themes/default/style.css
r4578 r6530 6 6 Author: Michael Heilemann 7 7 Author URI: http://binarybonsai.com/ 8 Tags: blue, custom header, fixed width, two columns, widgets 8 9 9 10 Kubrick v1.5 -
trunk/wp-includes/theme.php
r6410 r6530 91 91 $status = 'publish'; 92 92 93 if ( preg_match('|Tags:(.*)|i', $theme_data, $tags) ) 94 $tags = array_map( 'trim', explode( ',', wp_kses( trim( $tags[1] ), array() ) ) ); 95 else 96 $tags = array(); 97 93 98 $name = $theme = wp_kses( trim( $theme_name[1] ), $themes_allowed_tags ); 94 99 $theme_uri = clean_url( trim( $theme_uri[1] ) ); … … 104 109 } 105 110 106 return array( 'Name' => $name, 'Title' => $theme, 'URI' => $theme_uri, 'Description' => $description, 'Author' => $author, 'Version' => $version, 'Template' => $template, 'Status' => $status );111 return array( 'Name' => $name, 'Title' => $theme, 'URI' => $theme_uri, 'Description' => $description, 'Author' => $author, 'Version' => $version, 'Template' => $template, 'Status' => $status, 'Tags' => $tags ); 107 112 } 108 113 … … 262 267 } 263 268 264 $themes[$name] = array('Name' => $name, 'Title' => $title, 'Description' => $description, 'Author' => $author, 'Version' => $version, 'Template' => $template, 'Stylesheet' => $stylesheet, 'Template Files' => $template_files, 'Stylesheet Files' => $stylesheet_files, 'Template Dir' => $template_dir, 'Stylesheet Dir' => $stylesheet_dir, 'Status' => $theme_data['Status'], 'Screenshot' => $screenshot );269 $themes[$name] = array('Name' => $name, 'Title' => $title, 'Description' => $description, 'Author' => $author, 'Version' => $version, 'Template' => $template, 'Stylesheet' => $stylesheet, 'Template Files' => $template_files, 'Stylesheet Files' => $stylesheet_files, 'Template Dir' => $template_dir, 'Stylesheet Dir' => $stylesheet_dir, 'Status' => $theme_data['Status'], 'Screenshot' => $screenshot, 'Tags' => $theme_data['Tags']); 265 270 } 266 271
Note: See TracChangeset
for help on using the changeset viewer.