Skip to content

Commit

Permalink
Site Health: Add missing i18n for Security and Performance badge labels.
Browse files Browse the repository at this point in the history
Props iworks.
Fixes #46755. See #46683.

git-svn-id: https://develop.svn.wordpress.org/trunk@45095 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Apr 2, 2019
1 parent adfe5e2 commit fbf73bc
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/wp-admin/includes/class-wp-site-health.php
Expand Up @@ -182,7 +182,7 @@ public function get_test_wordpress_version() {
'label' => '',
'status' => '',
'badge' => array(
'label' => 'Security',
'label' => __( 'Security' ),
'color' => 'red',
),
'description' => '',
Expand Down Expand Up @@ -281,7 +281,7 @@ public function get_test_plugin_version() {
'label' => __( 'Your plugins are up to date' ),
'status' => 'good',
'badge' => array(
'label' => 'Security',
'label' => __( 'Security' ),
'color' => 'red',
),
'description' => sprintf(
Expand Down Expand Up @@ -395,7 +395,7 @@ public function get_test_theme_version() {
'label' => __( 'Your themes are up to date' ),
'status' => 'good',
'badge' => array(
'label' => 'Security',
'label' => __( 'Security' ),
'color' => 'red',
),
'description' => sprintf(
Expand Down Expand Up @@ -614,7 +614,7 @@ public function get_test_php_version() {
),
'status' => 'good',
'badge' => array(
'label' => 'Security',
'label' => __( 'Security' ),
'color' => 'red',
),
'description' => sprintf(
Expand Down Expand Up @@ -702,7 +702,7 @@ public function get_test_php_extensions() {
'label' => __( 'Required and recommended modules are installed' ),
'status' => 'good',
'badge' => array(
'label' => 'Performance',
'label' => __( 'Performance' ),
'color' => 'orange',
),
'description' => sprintf(
Expand Down Expand Up @@ -901,7 +901,7 @@ public function get_test_sql_server() {
'label' => __( 'SQL server is up to date' ),
'status' => 'good',
'badge' => array(
'label' => 'Security',
'label' => __( 'Security' ),
'color' => 'red',
),
'description' => sprintf(
Expand Down Expand Up @@ -979,7 +979,7 @@ public function get_test_utf8mb4_support() {
'label' => __( 'UTF8MB4 is supported' ),
'status' => 'good',
'badge' => array(
'label' => 'Performance',
'label' => __( 'Performance' ),
'color' => 'orange',
),
'description' => sprintf(
Expand Down Expand Up @@ -1094,7 +1094,7 @@ public function get_test_dotorg_communication() {
'label' => __( 'Can communicate with WordPress.org' ),
'status' => '',
'badge' => array(
'label' => 'Security',
'label' => __( 'Security' ),
'color' => 'red',
),
'description' => sprintf(
Expand Down Expand Up @@ -1154,7 +1154,7 @@ public function get_test_is_in_debug_mode() {
'label' => __( 'Your site is not set to output debug information' ),
'status' => 'good',
'badge' => array(
'label' => 'Security',
'label' => __( 'Security' ),
'color' => 'red',
),
'description' => sprintf(
Expand Down Expand Up @@ -1207,7 +1207,7 @@ public function get_test_https_status() {
'label' => __( 'Your website is using an active HTTPS connection.' ),
'status' => 'good',
'badge' => array(
'label' => 'Security',
'label' => __( 'Security' ),
'color' => 'red',
),
'description' => sprintf(
Expand Down Expand Up @@ -1270,7 +1270,7 @@ public function get_test_ssl_support() {
'label' => '',
'status' => '',
'badge' => array(
'label' => 'Security',
'label' => __( 'Security' ),
'color' => 'red',
),
'description' => sprintf(
Expand Down Expand Up @@ -1316,7 +1316,7 @@ public function get_test_scheduled_events() {
'label' => __( 'Scheduled events are running' ),
'status' => 'good',
'badge' => array(
'label' => 'Performance',
'label' => __( 'Performance' ),
'color' => 'orange',
),
'description' => sprintf(
Expand Down Expand Up @@ -1377,7 +1377,7 @@ public function get_test_background_updates() {
'label' => __( 'Background updates are working' ),
'status' => 'good',
'badge' => array(
'label' => 'Security',
'label' => __( 'Security' ),
'color' => 'red',
),
'description' => sprintf(
Expand Down Expand Up @@ -1453,7 +1453,7 @@ public function get_test_loopback_requests() {
'label' => __( 'Your site can perform loopback requests' ),
'status' => 'good',
'badge' => array(
'label' => 'Performance',
'label' => __( 'Performance' ),
'color' => 'orange',
),
'description' => sprintf(
Expand Down Expand Up @@ -1495,7 +1495,7 @@ public function get_test_http_requests() {
'label' => __( 'HTTP requests seem to be working as expected' ),
'status' => 'good',
'badge' => array(
'label' => 'Performance',
'label' => __( 'Performance' ),
'color' => 'orange',
),
'description' => sprintf(
Expand Down Expand Up @@ -1561,7 +1561,7 @@ public function get_test_rest_availability() {
'label' => __( 'The REST API is available' ),
'status' => 'good',
'badge' => array(
'label' => 'Performance',
'label' => __( 'Performance' ),
'color' => 'orange',
),
'description' => sprintf(
Expand Down

0 comments on commit fbf73bc

Please sign in to comment.