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.

git-svn-id: https://develop.svn.wordpress.org/trunk@54196 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Marius L. J
2022-09-17 23:49:10 +00:00
parent f153e171ed
commit b10d8771fb
@@ -2247,7 +2247,7 @@ class WP_Site_Health {
),
'description' => sprintf(
'<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' => '',
'test' => 'authorization_header',
@@ -2261,7 +2261,11 @@ class WP_Site_Health {
return $result;
}
$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' ) ) {
require_once ABSPATH . 'wp-admin/includes/misc.php';