From c3a27493e61098d266449621341e28c6209278b8 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 17 Oct 2013 20:29:09 +0000 Subject: [PATCH] Check if background core updates are supported on about.php. see #25603, #22704. Built from https://develop.svn.wordpress.org/trunk@25833 git-svn-id: http://core.svn.wordpress.org/trunk@25745 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/about.php | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/wp-admin/about.php b/wp-admin/about.php index 2328f60660..981495dbd1 100644 --- a/wp-admin/about.php +++ b/wp-admin/about.php @@ -40,8 +40,27 @@ include( ABSPATH . 'wp-admin/admin-header.php' );

-

is able to apply these updates automatically. Cool!' ); ?>

-

is not able to apply these updates automatically. But we’ll email %s when there is a new security release.' ), esc_html( get_site_option( 'admin_email' ) ) ); ?>

+ $wp_version . '.1-about.php', + 'version' => $wp_version . '.1-about.php', + 'php_version' => $required_php_version, + 'mysql_version' => $required_mysql_version, + ); + $can_auto_update = $upgrader->should_upgrade( 'core', $future_minor_update, ABSPATH ); + } + if ( $can_auto_update ) : ?> +

is able to apply these updates automatically. Cool!' ); ?>

+ +

is not able to apply these updates automatically. But we’ll email %s when there is a new security release.' ), esc_html( get_site_option( 'admin_email' ) ) ); ?>

+