From e2115d62b65bb556b1331fe33fba893ae5a1c17a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 28 Mar 2019 15:11:51 +0000 Subject: [PATCH] Site Health: Use a consistent wording and response code for capability checks. Props mukesh27 for initial patch. Fixes #46691. Built from https://develop.svn.wordpress.org/trunk@45050 git-svn-id: http://core.svn.wordpress.org/trunk@44859 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/site-health-info.php | 2 +- wp-admin/site-health.php | 2 +- wp-includes/version.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/site-health-info.php b/wp-admin/site-health-info.php index 571c221dd6..4499381eb9 100644 --- a/wp-admin/site-health-info.php +++ b/wp-admin/site-health-info.php @@ -10,7 +10,7 @@ require_once( dirname( __FILE__ ) . '/admin.php' ); if ( ! current_user_can( 'install_plugins' ) ) { - wp_die( __( 'Sorry, you do not have permission to access the debug data.' ), '', array( 'reponse' => 401 ) ); + wp_die( __( 'Sorry, you are not allowed to access the debug data.' ), '', 403 ); } wp_enqueue_style( 'site-health' ); diff --git a/wp-admin/site-health.php b/wp-admin/site-health.php index 2457cc3eee..62279e7daa 100644 --- a/wp-admin/site-health.php +++ b/wp-admin/site-health.php @@ -15,7 +15,7 @@ if ( isset( $_GET['tab'] ) && 'debug' === $_GET['tab'] ) { require_once( dirname( __FILE__ ) . '/admin.php' ); if ( ! current_user_can( 'install_plugins' ) ) { - wp_die( __( 'Sorry, you do not have permission to access site health information.' ), '', array( 'reponse' => 401 ) ); + wp_die( __( 'Sorry, you are not allowed to access site health information.' ), '', 403 ); } wp_enqueue_style( 'site-health' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 6defedf32d..2692c78cea 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2-beta1-45049'; +$wp_version = '5.2-beta1-45050'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.