WordPress.org

Make WordPress Core

Changeset 29685


Ignore:
Timestamp:
09/03/2014 05:37:33 AM (5 years ago)
Author:
dd32
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r29675 r29685  
    12651265            $this->skin->feedback( 'starting_upgrade' );
    12661266
    1267         // Remove any existing package checks and then set the new one for translations, #WP29230.
     1267        // Remove any existing upgrade filters from the plugin/theme upgraders #WP29425 & #WP29230
     1268        remove_all_filters( 'upgrader_pre_install' );
     1269        remove_all_filters( 'upgrader_clear_destination' );
     1270        remove_all_filterS( 'upgrader_post_install' );
    12681271        remove_all_filters( 'upgrader_source_selection' );
     1272
    12691273        add_filter( 'upgrader_source_selection', array( $this, 'check_package' ), 10, 2 );
    12701274
Note: See TracChangeset for help on using the changeset viewer.