From 8b0cc1c90f03940d11a21469dd3475cf4ae930f7 Mon Sep 17 00:00:00 2001 From: Mike Schroder Date: Fri, 12 Apr 2019 02:27:51 +0000 Subject: [PATCH] Site Health: Clarify `WP_DEBUG` warning and translation contexts. Clarifies that `WP_DEBUG` can cause `WP_DEBUG_DISPLAY` to be enabled, and uses the constants themselves in related translation contexts. Props mukesh27, ocean90, clorith, SergeyBiryukov, mikeschroder. Fixes #46877. Built from https://develop.svn.wordpress.org/trunk@45164 git-svn-id: http://core.svn.wordpress.org/trunk@44973 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-site-health.php | 9 +++++---- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/class-wp-site-health.php b/wp-admin/includes/class-wp-site-health.php index 85420f4b8d..0fe620d9f9 100644 --- a/wp-admin/includes/class-wp-site-health.php +++ b/wp-admin/includes/class-wp-site-health.php @@ -1182,7 +1182,7 @@ class WP_Site_Health { $result['description'] .= sprintf( '

%s

', sprintf( - /* translators: %s: Name of the constant used. */ + /* translators: %s: WP_DEBUG_LOG */ __( 'The value, %s, has been added to this website’s configuration file. This means any errors on the site will be written to a file which is potentially available to normal users.' ), 'WP_DEBUG_LOG' ) @@ -1197,9 +1197,10 @@ class WP_Site_Health { $result['description'] .= sprintf( '

%s

', sprintf( - /* translators: %s: Name of the constant used. */ - __( 'The value, %s, has either been added to your configuration file, or left with its default value. This will make errors display on the front end of your site.' ), - 'WP_DEBUG_DISPLAY' + /* translators: 1: WP_DEBUG_DISPLAY, 2: WP_DEBUG */ + __( 'The value, %1$s, has either been enabled by %2$s or added to your configuration file. This will make errors display on the front end of your site.' ), + 'WP_DEBUG_DISPLAY', + 'WP_DEBUG' ) ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 37fd12f1db..e47b357a66 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2-beta2-45163'; +$wp_version = '5.2-beta2-45164'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.