Make WordPress Core

Changeset 25861


Ignore:
Timestamp:
10/22/2013 04:36:54 AM (11 years ago)
Author:
nacin
Message:

Move upgrader_process_complete for core to its proper place in Core_Upgrader.

This means it will be firing as a JS redirect is taking place if the update is from pre-3.4. Acceptable.

props dd32.
fixes #25659.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

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

    r25859 r25861  
    14071407        }
    14081408
     1409        do_action( 'upgrader_process_complete', $this, array( 'action' => 'update', 'type' => 'core' ) );
     1410
    14091411        return $result;
    14101412    }
  • trunk/src/wp-admin/includes/update-core.php

    r25841 r25861  
    892892    $wp_filesystem->delete($maintenance_file);
    893893
    894     // Has to be in here, rather than the Upgrader as the filter below will override and kill the process before themes get updated on major updates
    895     do_action( 'upgrader_process_complete', null, array( 'action' => 'update', 'type' => 'core' ) );
    896 
    897894    // If we made it this far:
    898895    do_action( '_core_updated_successfully', $wp_version );
Note: See TracChangeset for help on using the changeset viewer.