Make WordPress Core


Ignore:
Timestamp:
10/17/2013 11:20:56 PM (13 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/about.php

    r25834 r25835  
    4545                        if ( $can_auto_update ) {
    4646                                require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    47                                 $upgrader = new WP_Automatic_Upgrader;
     47                                $upgrader = new WP_Automatic_Updater;
    4848                                $future_minor_update = (object) array(
    4949                                        'current'       => $wp_version . '.1-about.php',
     
    5252                                        'mysql_version' => $required_mysql_version,
    5353                                );
    54                                 $can_auto_update = $upgrader->should_upgrade( 'core', $future_minor_update, ABSPATH );
     54                                $can_auto_update = $upgrader->should_update( 'core', $future_minor_update, ABSPATH );
    5555                        }
    5656                        if ( $can_auto_update ) : ?>
Note: See TracChangeset for help on using the changeset viewer.