Ticket #19244: 19244.patch
| File 19244.patch, 1.7 KB (added by , 14 years ago) |
|---|
-
wp-admin/includes/theme.php
145 145 return get_themes(); 146 146 147 147 $themes = get_themes(); 148 if ( !is_array( $themes ) ) 149 return false; 150 148 151 $ct = current_theme_info(); 149 152 $allowed_themes = apply_filters("allowed_themes", get_site_allowed_themes() ); 150 153 if ( $allowed_themes == false ) … … 176 179 */ 177 180 function get_page_templates() { 178 181 $themes = get_themes(); 182 if ( !is_array( $themes ) ) 183 return array(); 184 179 185 $theme = get_current_theme(); 180 186 $templates = $themes[$theme]['Template Files']; 181 187 $page_templates = array(); -
wp-admin/includes/update.php
221 221 $current = get_site_transient('update_themes'); 222 222 $update_themes = array(); 223 223 224 foreach ( $themes as $theme ) {224 foreach ( (array) $themes as $theme ) { 225 225 $theme = (object) $theme; 226 226 if ( isset($current->response[ $theme->Stylesheet ]) ) { 227 227 $update_themes[$theme->Stylesheet] = $theme; -
wp-includes/theme.php
480 480 $theme_roots = get_site_transient( 'theme_roots' ); 481 481 if ( false === $theme_roots ) { 482 482 get_themes(); 483 $theme_roots = get_site_transient( 'theme_roots' ); // this is set in get_theme ()483 $theme_roots = get_site_transient( 'theme_roots' ); // this is set in get_themes() 484 484 } 485 485 return $theme_roots; 486 486 }