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

git-svn-id: https://develop.svn.wordpress.org/trunk@26192 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse
2013-11-15 03:04:00 +00:00
parent 15c1c2f130
commit c4e0aa63d9
2 changed files with 11 additions and 5 deletions

View File

@@ -483,8 +483,10 @@ get_current_screen()->set_help_sidebar(
);
if ( 'upgrade-core' == $action ) {
// Force a update check when requested
$force_check = ! empty( $_GET['force-check'] );
wp_version_check( array(), $force_check );
wp_version_check();
require_once(ABSPATH . 'wp-admin/admin-header.php');
?>
<div class="wrap">
@@ -503,7 +505,7 @@ if ( 'upgrade-core' == $action ) {
echo '<p>';
/* translators: %1 date, %2 time. */
printf( __('Last checked on %1$s at %2$s.'), date_i18n( get_option( 'date_format' ) ), date_i18n( get_option( 'time_format' ) ) );
echo ' &nbsp; <a class="button" href="' . esc_url( self_admin_url('update-core.php') ) . '">' . __( 'Check Again' ) . '</a>';
echo ' &nbsp; <a class="button" href="' . esc_url( self_admin_url('update-core.php?force-check=1') ) . '">' . __( 'Check Again' ) . '</a>';
echo '</p>';
if ( $core = current_user_can( 'update_core' ) )