Make WordPress Core


Ignore:
Timestamp:
10/17/2013 12:54:15 AM (11 years ago)
Author:
nacin
Message:

Make WP_Automatic_Upgrader a proper object that gets instantiated. Renames nearly all of its methods.

Also renames wp_auto_updates_maybe_update() to wp_maybe_auto_update().

see #22704.

File:
1 edited

Legend:

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

    r25810 r25823  
    7878
    7979    $auto_update = false;
     80    $upgrader = new WP_Automatic_Upgrader;
    8081    foreach ( $updates->updates as $update ) {
    8182        if ( 'autoupdate' != $update->response )
    8283            continue;
    8384
    84         if ( ! WP_Automatic_Upgrader::should_auto_update( 'core', $update, ABSPATH ) )
     85        if ( ! $upgrader->should_upgrade( 'core', $update, ABSPATH ) )
    8586            continue;
    8687
Note: See TracChangeset for help on using the changeset viewer.