Site Health: Improve the description for Authorization header checks.

Previously the description left the user stuck with no path forward if flushing their permalinks was not enough.

This change givers a clearer description of what approving an application may involve (allowing these to connect to the users site), but also an additional step towards resolution if flushing permalinks are not enough; pointing them towards their host.

Props Presskopp, webcommsat.
Fixes #54508.
Built from https://develop.svn.wordpress.org/trunk@54196


git-svn-id: http://core.svn.wordpress.org/trunk@53755 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Clorith 2022-09-17 23:51:08 +00:00
parent 4dd6f110a3
commit 3c1cd858dd
2 changed files with 7 additions and 3 deletions

View File

@ -2247,7 +2247,7 @@ class WP_Site_Health {
), ),
'description' => sprintf( 'description' => sprintf(
'<p>%s</p>', '<p>%s</p>',
__( 'The Authorization header comes from the third-party applications you approve. Without it, those apps cannot connect to your site.' ) __( 'The Authorization header is used by third-party applications you have approved for this site. Without this header, those apps cannot connect to your site.' )
), ),
'actions' => '', 'actions' => '',
'test' => 'authorization_header', 'test' => 'authorization_header',
@ -2262,6 +2262,10 @@ class WP_Site_Health {
} }
$result['status'] = 'recommended'; $result['status'] = 'recommended';
$result['description'] .= sprintf(
'<p>%s</p>',
__( 'If you are still seeing this warning after having tried the actions below, you may need to contact your hosting provider for further assistance.' )
);
if ( ! function_exists( 'got_mod_rewrite' ) ) { if ( ! function_exists( 'got_mod_rewrite' ) ) {
require_once ABSPATH . 'wp-admin/includes/misc.php'; require_once ABSPATH . 'wp-admin/includes/misc.php';

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.1-alpha-54195'; $wp_version = '6.1-alpha-54196';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.