WordPress.org

Make WordPress Core

Changeset 27930


Ignore:
Timestamp:
04/03/2014 05:46:28 AM (6 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.7 branch.
Fixes #27633.

Location:
branches/3.7
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3.7

  • branches/3.7/src

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

    r27924 r27930  
    252252    );
    253253
    254     if ( $plugin_update_stats ) {
     254    if ( $extra_stats ) {
    255255        $options['body']['update_stats'] = json_encode( $extra_stats );
    256256    }
     
    397397    );
    398398
    399     if ( $theme_update_stats ) {
     399    if ( $extra_stats ) {
    400400        $options['body']['update_stats'] = json_encode( $extra_stats );
    401401    }
     
    613613add_action( 'admin_init', '_maybe_update_plugins' );
    614614add_action( 'wp_update_plugins', 'wp_update_plugins' );
    615 add_action( 'upgrader_process_complete', 'wp_update_plugins' );
     615add_action( 'upgrader_process_complete', 'wp_update_plugins', 10, 0 );
    616616
    617617add_action( 'load-themes.php', 'wp_update_themes' );
     
    620620add_action( 'admin_init', '_maybe_update_themes' );
    621621add_action( 'wp_update_themes', 'wp_update_themes' );
    622 add_action( 'upgrader_process_complete', 'wp_update_themes' );
     622add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 );
    623623
    624624add_action( 'wp_maybe_auto_update', 'wp_maybe_auto_update' );
Note: See TracChangeset for help on using the changeset viewer.