WordPress.org

Make WordPress Core

Changeset 25783


Ignore:
Timestamp:
10/15/13 05:06:35 (3 years ago)
Author:
nacin
Message:

Hide auto updates from update-core.php directly in get_core_updates(). see #22704.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

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

    r25649 r25783  
    4343    $result = array(); 
    4444    foreach ( $updates as $update ) { 
     45        if ( $update->response == 'autoupdate' ) 
     46            continue; 
     47 
    4548        if ( array_key_exists( $update->current . '|' . $update->locale, $dismissed ) ) { 
    4649            if ( $options['dismissed'] ) { 
  • trunk/src/wp-admin/update-core.php

    r25633 r25783  
    2525    global $wp_local_package, $wpdb; 
    2626    static $first_pass = true; 
    27  
    28     // Don't show auto-updates in the updates page 
    29     if ( isset( $update->response ) && 'autoupdate' == $update->response ) 
    30         return; 
    3127 
    3228    $version_string = ('en_US' == $update->locale && 'en_US' == get_locale() ) ? 
Note: See TracChangeset for help on using the changeset viewer.