diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index dfd7b06a5a..5a4a8d369f 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -1205,6 +1205,11 @@ if ( 'upgrade-core' === $action ) { require_once ABSPATH . 'wp-admin/admin-footer.php'; } elseif ( 'core-major-auto-updates-settings' === $action ) { + + if ( ! current_user_can( 'update_core' ) ) { + wp_die( __( 'Sorry, you are not allowed to update this site.' ) ); + } + $redirect_url = self_admin_url( 'update-core.php' ); if ( isset( $_GET['value'] ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 8968c90e6c..9af0051f34 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-beta4-49592'; +$wp_version = '5.6-beta4-49593'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.