more lint nom
This commit is contained in:
parent
2596713213
commit
cc168c7d40
1 changed files with 20 additions and 9 deletions
|
@ -204,21 +204,32 @@ class Health_Check {
|
||||||
|
|
||||||
$url = \Activitypub\Webfinger::resolve( $account );
|
$url = \Activitypub\Webfinger::resolve( $account );
|
||||||
if ( \is_wp_error( $url ) ) {
|
if ( \is_wp_error( $url ) ) {
|
||||||
|
$allowed = array( 'code' => array() );
|
||||||
|
$not_accessible = wp_kses(
|
||||||
|
// translators: %s: Author URL
|
||||||
|
\__(
|
||||||
|
'Your WebFinger endpoint <code>%s</code> is not accessible. Please check your WordPress setup or permalink structure.',
|
||||||
|
'activitypub'
|
||||||
|
),
|
||||||
|
$allowed
|
||||||
|
);
|
||||||
|
$invalid_response = wp_kses(
|
||||||
|
// translators: %s: Author URL
|
||||||
|
\__(
|
||||||
|
'Your WebFinger endpoint <code>%s</code> does not return valid JSON for <code>application/jrd+json</code>.',
|
||||||
|
'activitypub'
|
||||||
|
),
|
||||||
|
$allowed
|
||||||
|
);
|
||||||
|
|
||||||
$health_messages = array(
|
$health_messages = array(
|
||||||
'webfinger_url_not_accessible' => \sprintf(
|
'webfinger_url_not_accessible' => \sprintf(
|
||||||
// translators: %s: Author URL
|
$not_accessible,
|
||||||
\__(
|
|
||||||
'<p>Your WebFinger endpoint <code>%s</code> is not accessible. Please check your WordPress setup or permalink structure.</p>',
|
|
||||||
'activitypub'
|
|
||||||
),
|
|
||||||
$url->get_error_data()
|
$url->get_error_data()
|
||||||
),
|
),
|
||||||
'webfinger_url_invalid_response' => \sprintf(
|
'webfinger_url_invalid_response' => \sprintf(
|
||||||
// translators: %s: Author URL
|
// translators: %s: Author URL
|
||||||
\__(
|
$invalid_response,
|
||||||
'Your WebFinger endpoint <code>%s</code> does not return valid JSON for <code>application/jrd+json</code>.',
|
|
||||||
'activitypub'
|
|
||||||
),
|
|
||||||
$url->get_error_data()
|
$url->get_error_data()
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue