Make WordPress Core

Changeset 27928


Ignore:
Timestamp:
04/03/2014 05:32:02 AM (10 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. See #27633

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/update.php

    r27906 r27928  
    618618add_action( 'admin_init', '_maybe_update_plugins' );
    619619add_action( 'wp_update_plugins', 'wp_update_plugins' );
    620 add_action( 'upgrader_process_complete', 'wp_update_plugins' );
     620add_action( 'upgrader_process_complete', 'wp_update_plugins', 10, 0 );
    621621
    622622add_action( 'load-themes.php', 'wp_update_themes' );
     
    625625add_action( 'admin_init', '_maybe_update_themes' );
    626626add_action( 'wp_update_themes', 'wp_update_themes' );
    627 add_action( 'upgrader_process_complete', 'wp_update_themes' );
     627add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 );
    628628
    629629add_action( 'wp_maybe_auto_update', 'wp_maybe_auto_update' );
Note: See TracChangeset for help on using the changeset viewer.