Make WordPress Core

Changeset 27929


Ignore:
Timestamp:
04/03/2014 05:40:00 AM (11 years ago)
Author:
dd32
Message:

Background Updates: Fix a PHP Warning caused by a Upgrader instance being passed into the Theme & Plugin $extra_stats parameter.
Background Updates: Fix two variable typos in r27905

Merges [27906], [27928] to the 3.8 branch.
Fixes #27633.

Location:
branches/3.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.8

  • branches/3.8/src/wp-includes/update.php

    r27923 r27929  
    260260    );
    261261
    262     if ( $plugin_update_stats ) {
     262    if ( $extra_stats ) {
    263263        $options['body']['update_stats'] = json_encode( $extra_stats );
    264264    }
     
    405405    );
    406406
    407     if ( $theme_update_stats ) {
     407    if ( $extra_stats ) {
    408408        $options['body']['update_stats'] = json_encode( $extra_stats );
    409409    }
     
    621621add_action( 'admin_init', '_maybe_update_plugins' );
    622622add_action( 'wp_update_plugins', 'wp_update_plugins' );
    623 add_action( 'upgrader_process_complete', 'wp_update_plugins' );
     623add_action( 'upgrader_process_complete', 'wp_update_plugins', 10, 0 );
    624624
    625625add_action( 'load-themes.php', 'wp_update_themes' );
     
    628628add_action( 'admin_init', '_maybe_update_themes' );
    629629add_action( 'wp_update_themes', 'wp_update_themes' );
    630 add_action( 'upgrader_process_complete', 'wp_update_themes' );
     630add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 );
    631631
    632632add_action( 'wp_maybe_auto_update', 'wp_maybe_auto_update' );
Note: See TracChangeset for help on using the changeset viewer.