mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Bootstrap: do not go gentle into that good night r38411, r38412, and parts of r38389.
See #36335. git-svn-id: https://develop.svn.wordpress.org/trunk@38470 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -164,6 +164,7 @@ function core_upgrade_preamble() {
|
||||
_e('You have the latest version of WordPress.');
|
||||
|
||||
if ( wp_http_supports( array( 'ssl' ) ) ) {
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
$upgrader = new WP_Automatic_Updater;
|
||||
$future_minor_update = (object) array(
|
||||
'current' => $wp_version . '.1.next.minor',
|
||||
@@ -187,6 +188,7 @@ function core_upgrade_preamble() {
|
||||
}
|
||||
|
||||
if ( isset( $updates[0] ) && $updates[0]->response == 'development' ) {
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
$upgrader = new WP_Automatic_Updater;
|
||||
if ( wp_http_supports( 'ssl' ) && $upgrader->should_update( 'core', $updates[0], ABSPATH ) ) {
|
||||
echo '<div class="updated inline"><p>';
|
||||
@@ -432,6 +434,8 @@ function list_translation_updates() {
|
||||
function do_core_upgrade( $reinstall = false ) {
|
||||
global $wp_filesystem;
|
||||
|
||||
include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
|
||||
|
||||
if ( $reinstall )
|
||||
$url = 'update-core.php?action=do-core-reinstall';
|
||||
else
|
||||
@@ -702,6 +706,7 @@ if ( 'upgrade-core' == $action ) {
|
||||
check_admin_referer( 'upgrade-translations' );
|
||||
|
||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
|
||||
|
||||
$url = 'update-core.php?action=do-translation-upgrade';
|
||||
$nonce = 'upgrade-translations';
|
||||
|
||||
Reference in New Issue
Block a user