From 7d54ac58ccb63c19324fb603ad3fe1c15973e09a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 13 Apr 2019 18:11:46 +0000 Subject: [PATCH] Site Health: Merge duplicate "Error" strings. Props ramiy. Fixes #46915. git-svn-id: https://develop.svn.wordpress.org/trunk@45195 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-site-health.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/class-wp-site-health.php b/src/wp-admin/includes/class-wp-site-health.php index d2313bb1eb..87182c1830 100644 --- a/src/wp-admin/includes/class-wp-site-health.php +++ b/src/wp-admin/includes/class-wp-site-health.php @@ -1668,7 +1668,7 @@ class WP_Site_Health { __( 'The REST API request failed due to an error.' ), sprintf( /* translators: 1: The HTTP response code. 2: The error message returned. */ - __( 'Error encountered: (%1$d) %2$s' ), + __( 'Error: [%1$s] %2$s' ), wp_remote_retrieve_response_code( $r ), $r->get_error_message() ) @@ -1949,7 +1949,7 @@ class WP_Site_Health { __( 'The loopback request to your site failed, this means features relying on them are not currently working as expected.' ), sprintf( // translators: 1: The HTTP response code. 2: The error message returned. - __( 'Error encountered: (%1$d) %2$s' ), + __( 'Error: [%1$s] %2$s' ), wp_remote_retrieve_response_code( $r ), $r->get_error_message() )