Make WordPress Core


Ignore:
Timestamp:
10/17/2013 11:20:56 PM (10 years ago)
Author:
nacin
Message:

In automatic background updates, standardize on 'update'.

New, final filter names:

  • auto_update_{$type} (plugin, theme, core, language)
  • automatic_updates_is_vcs_checkout
  • automatic_updates_disabled

New class name is WP_Automatic_Updater. Method names include update() and should_update().

see #22704.

File:
1 edited

Legend:

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

    r25823 r25835  
    7878
    7979    $auto_update = false;
    80     $upgrader = new WP_Automatic_Upgrader;
     80    $upgrader = new WP_Automatic_Updater;
    8181    foreach ( $updates->updates as $update ) {
    8282        if ( 'autoupdate' != $update->response )
    8383            continue;
    8484
    85         if ( ! $upgrader->should_upgrade( 'core', $update, ABSPATH ) )
     85        if ( ! $upgrader->should_update( 'core', $update, ABSPATH ) )
    8686            continue;
    8787
Note: See TracChangeset for help on using the changeset viewer.