Make WordPress Core


Ignore:
Timestamp:
11/15/2013 03:04:00 AM (10 years ago)
Author:
dd32
Message:

Updates: Force an update check to occur when the 'Check Again' button is used in the Dashboard. Fixes #25831

File:
1 edited

Legend:

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

    r26113 r26192  
    484484
    485485if ( 'upgrade-core' == $action ) {
    486 
    487     wp_version_check();
     486    // Force a update check when requested
     487    $force_check = ! empty( $_GET['force-check'] );
     488    wp_version_check( array(), $force_check );
     489
    488490    require_once(ABSPATH . 'wp-admin/admin-header.php');
    489491    ?>
     
    504506    /* translators: %1 date, %2 time. */
    505507    printf( __('Last checked on %1$s at %2$s.'), date_i18n( get_option( 'date_format' ) ), date_i18n( get_option( 'time_format' ) ) );
    506     echo ' &nbsp; <a class="button" href="' . esc_url( self_admin_url('update-core.php') ) . '">' . __( 'Check Again' ) . '</a>';
     508    echo ' &nbsp; <a class="button" href="' . esc_url( self_admin_url('update-core.php?force-check=1') ) . '">' . __( 'Check Again' ) . '</a>';
    507509    echo '</p>';
    508510
Note: See TracChangeset for help on using the changeset viewer.