Don't list current theme in the availablet themes list.

git-svn-id: http://svn.automattic.com/wordpress/trunk@3476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-01-24 07:38:29 +00:00
parent 7310346328
commit 7cba6fd969
2 changed files with 2 additions and 1 deletions

View File

@ -1616,6 +1616,7 @@ function get_importers() {
function current_theme_info() {
$themes = get_themes();
$current_theme = get_current_theme();
$ct->name = $current_theme;
$ct->title = $themes[$current_theme]['Title'];
$ct->version = $themes[$current_theme]['Version'];
$ct->parent_theme = $themes[$current_theme]['Parent Theme'];

View File

@ -59,7 +59,7 @@ $theme_names = array_keys($themes);
natcasesort($theme_names);
foreach ($theme_names as $theme_name) {
if ( $theme_name == $current_theme )
if ( $theme_name == $ct->name )
continue;
$template = $themes[$theme_name]['Template'];
$stylesheet = $themes[$theme_name]['Stylesheet'];