Make WordPress Core


Ignore:
Timestamp:
10/18/2013 09:23:43 PM (11 years ago)
Author:
nacin
Message:

Commit [25823] should not have renamed AUTOMATIC_UPDATER_DISABLED to AUTOMATIC_UPDATES_DISABLED.

The proper constant is AUTOMATIC_UPDATER_DISABLED. Keep the filter in line with that too.

see #22704.

File:
1 edited

Legend:

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

    r25843 r25851  
    15861586
    15871587        // More fine grained control can be done through the WP_AUTO_UPDATE_CORE constant and filters.
    1588         $disabled = defined( 'AUTOMATIC_UPDATES_DISABLED' ) && AUTOMATIC_UPDATES_DISABLED;
    1589 
    1590         return apply_filters( 'automatic_updates_disabled', $disabled );
     1588        $disabled = defined( 'AUTOMATIC_UPDATER_DISABLED' ) && AUTOMATIC_UPDATER_DISABLED;
     1589
     1590        return apply_filters( 'automatic_updater_disabled', $disabled );
    15911591    }
    15921592
Note: See TracChangeset for help on using the changeset viewer.