Changeset 3476

Show
Ignore:
Timestamp:
01/24/06 07:38:29 (3 years ago)
Author:
ryan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/admin-functions.php

    r3446 r3476  
    16171617    $themes = get_themes(); 
    16181618    $current_theme = get_current_theme(); 
     1619    $ct->name = $current_theme; 
    16191620    $ct->title = $themes[$current_theme]['Title']; 
    16201621    $ct->version = $themes[$current_theme]['Version']; 
  • trunk/wp-admin/themes.php

    r3134 r3476  
    6060 
    6161foreach ($theme_names as $theme_name) { 
    62     if ( $theme_name == $current_theme ) 
     62    if ( $theme_name == $ct->name ) 
    6363        continue; 
    6464    $template = $themes[$theme_name]['Template'];