From b9290e0ea305b2f494f321c02bee694bb4992596 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 24 Oct 2013 22:54:22 +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@25833 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' ) ) ); ?>

+