Changeset 21080
- Timestamp:
- 06/14/2012 02:24:25 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
wp-admin/includes/class-wp-upgrader.php (modified) (3 diffs)
-
wp-includes/theme.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-upgrader.php
r21064 r21080 764 764 765 765 // Force refresh of theme update information 766 delete_site_transient('update_themes'); 767 search_theme_directories( true ); 768 foreach ( wp_get_themes() as $theme ) 769 $theme->cache_delete(); 766 wp_clean_themes_cache(); 770 767 771 768 return true; … … 813 810 814 811 // Force refresh of theme update information 815 delete_site_transient('update_themes'); 816 search_theme_directories( true ); 817 foreach ( wp_get_themes() as $theme ) 818 $theme->cache_delete(); 812 wp_clean_themes_cache(); 819 813 820 814 return true; … … 903 897 904 898 // Force refresh of theme update information 905 delete_site_transient('update_themes'); 906 search_theme_directories( true ); 907 foreach ( wp_get_themes() as $theme ) 908 $theme->cache_delete(); 899 wp_clean_themes_cache(); 909 900 910 901 return $results; -
trunk/wp-includes/theme.php
r21063 r21080 105 105 106 106 return new WP_Theme( $stylesheet, $theme_root ); 107 } 108 109 /** 110 * Clears the cache held by get_theme_roots() and WP_Theme. 111 * 112 * @since 3.5.0 113 */ 114 function wp_clean_themes_cache() { 115 delete_site_transient('update_themes'); 116 search_theme_directories( true ); 117 foreach ( wp_get_themes( array( 'errors' => null ) ) as $theme ) 118 $theme->cache_delete(); 107 119 } 108 120
Note: See TracChangeset
for help on using the changeset viewer.