Changeset 34751
- Timestamp:
- 10/01/2015 09:20:09 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader.php
r34748 r34751 845 845 846 846 add_filter('upgrader_source_selection', array($this, 'check_package') ); 847 // Clear cache so wp_update_plugins() knows about the new plugin. 848 add_action( 'upgrader_process_complete', 'wp_clean_plugins_cache', 9, 0 ); 847 849 848 850 $this->run( array( … … 857 859 ) ); 858 860 861 remove_action( 'upgrader_process_complete', 'wp_clean_plugins_cache', 9 ); 859 862 remove_filter('upgrader_source_selection', array($this, 'check_package') ); 860 863 … … 1409 1412 add_filter('upgrader_source_selection', array($this, 'check_package') ); 1410 1413 add_filter('upgrader_post_install', array($this, 'check_parent_theme_filter'), 10, 3); 1414 // Clear cache so wp_update_themes() knows about the new theme. 1415 add_action( 'upgrader_process_complete', 'wp_clean_themes_cache', 9, 0 ); 1411 1416 1412 1417 $this->run( array( … … 1421 1426 ) ); 1422 1427 1428 remove_action( 'upgrader_process_complete', 'wp_clean_themes_cache', 9 ); 1423 1429 remove_filter('upgrader_source_selection', array($this, 'check_package') ); 1424 1430 remove_filter('upgrader_post_install', array($this, 'check_parent_theme_filter'));
Note: See TracChangeset
for help on using the changeset viewer.