Fix menu annoyance. Clean up themes.php code.

git-svn-id: http://svn.automattic.com/wordpress/trunk@2839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt
2005-09-05 23:33:10 +00:00
parent ee121a076e
commit d2e83e3d2c
4 changed files with 69 additions and 83 deletions

View File

@@ -1399,4 +1399,20 @@ function get_importers() {
return $wp_importers;
}
?>
function current_theme_info() {
$themes = get_themes();
$current_theme = get_current_theme();
$ct->title = $themes[$current_theme]['Title'];
$ct->version = $themes[$current_theme]['Version'];
$ct->parent_theme = $themes[$current_theme]['Parent Theme'];
$ct->template_dir = $themes[$current_theme]['Template Dir'];
$ct->stylesheet_dir = $themes[$current_theme]['Stylesheet Dir'];
$ct->template = $themes[$current_theme]['Template'];
$ct->stylesheet = $themes[$current_theme]['Stylesheet'];
$ct->screenshot = $themes[$current_theme]['Screenshot'];
$ct->description = $themes[$current_theme]['Description'];
$ct->author = $themes[$current_theme]['Author'];
return $ct;
}
?>