mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Language Pack Upgrader: Remove ALL pre-existing filters before performing a translation update these filters may act in an unexpected way during the upgrade process.
See #29230. Fixes #29425. git-svn-id: https://develop.svn.wordpress.org/trunk@29685 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1264,8 +1264,12 @@ class Language_Pack_Upgrader extends WP_Upgrader {
|
||||
if ( 'upgrader_process_complete' == current_filter() )
|
||||
$this->skin->feedback( 'starting_upgrade' );
|
||||
|
||||
// Remove any existing package checks and then set the new one for translations, #WP29230.
|
||||
// Remove any existing upgrade filters from the plugin/theme upgraders #WP29425 & #WP29230
|
||||
remove_all_filters( 'upgrader_pre_install' );
|
||||
remove_all_filters( 'upgrader_clear_destination' );
|
||||
remove_all_filterS( 'upgrader_post_install' );
|
||||
remove_all_filters( 'upgrader_source_selection' );
|
||||
|
||||
add_filter( 'upgrader_source_selection', array( $this, 'check_package' ), 10, 2 );
|
||||
|
||||
$this->skin->header();
|
||||
|
||||
Reference in New Issue
Block a user