more lint nom

This commit is contained in:
Matt Wiebe 2023-07-18 15:13:53 -05:00
parent 2596713213
commit cc168c7d40

View file

@ -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 ) ) {
$health_messages = array( $allowed = array( 'code' => array() );
'webfinger_url_not_accessible' => \sprintf( $not_accessible = wp_kses(
// translators: %s: Author URL // translators: %s: Author URL
\__( \__(
'<p>Your WebFinger endpoint <code>%s</code> is not accessible. Please check your WordPress setup or permalink structure.</p>', 'Your WebFinger endpoint <code>%s</code> is not accessible. Please check your WordPress setup or permalink structure.',
'activitypub' 'activitypub'
), ),
$url->get_error_data() $allowed
), );
'webfinger_url_invalid_response' => \sprintf( $invalid_response = wp_kses(
// translators: %s: Author URL // translators: %s: Author URL
\__( \__(
'Your WebFinger endpoint <code>%s</code> does not return valid JSON for <code>application/jrd+json</code>.', 'Your WebFinger endpoint <code>%s</code> does not return valid JSON for <code>application/jrd+json</code>.',
'activitypub' 'activitypub'
), ),
$allowed
);
$health_messages = array(
'webfinger_url_not_accessible' => \sprintf(
$not_accessible,
$url->get_error_data()
),
'webfinger_url_invalid_response' => \sprintf(
// translators: %s: Author URL
$invalid_response,
$url->get_error_data() $url->get_error_data()
), ),
); );