Changeset 20029 for trunk/wp-admin/includes/update.php
- Timestamp:
- 02/28/2012 09:24:44 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/update.php
r19809 r20029 218 218 219 219 function get_theme_updates() { 220 $themes = get_themes();220 $themes = wp_get_themes(); 221 221 $current = get_site_transient('update_themes'); 222 222 $update_themes = array(); 223 223 224 foreach ( $themes as $theme ) { 225 $theme = (object) $theme; 226 if ( isset($current->response[ $theme->Stylesheet ]) ) { 227 $update_themes[$theme->Stylesheet] = $theme; 228 $update_themes[$theme->Stylesheet]->update = $current->response[ $theme->Stylesheet ]; 229 } 224 foreach ( $current->response as $stylesheet => $data ) { 225 $update_themes[ $stylesheet ] = wp_get_theme( $stylesheet ); 226 $update_themes[ $stylesheet ]->update = $data; 230 227 } 231 228
Note: See TracChangeset
for help on using the changeset viewer.