mirror of
git://develop.git.wordpress.org/
synced 2025-01-31 20:38:54 +01:00
Don't list current theme in the availablet themes list.
git-svn-id: https://develop.svn.wordpress.org/trunk@3476 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
852e4073b7
commit
3855fbe248
@ -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'];
|
||||
|
@ -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'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user