Changeset 19251 for trunk/wp-admin/includes/theme.php
- Timestamp:
- 11/11/2011 02:10:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/theme.php
r18563 r19251 17 17 $themes = get_themes(); 18 18 $current_theme = get_current_theme(); 19 20 if ( ! $themes ) { 21 $ct = new stdClass; 22 $ct->name = $current_theme; 23 return $ct; 24 } 25 19 26 if ( ! isset( $themes[$current_theme] ) ) { 20 27 delete_option( 'current_theme' ); 21 28 $current_theme = get_current_theme(); 22 29 } 30 23 31 $ct = new stdClass; 24 32 $ct->name = $current_theme;
Note: See TracChangeset
for help on using the changeset viewer.