WordPress.org

Make WordPress Core

Changeset 45164


Ignore:
Timestamp:
04/12/2019 02:26:44 AM (6 months ago)
Author:
mikeschroder
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r45121 r45164  
    11831183                    '<p>%s</p>',
    11841184                    sprintf(
    1185                         /* translators: %s: Name of the constant used. */
     1185                        /* translators: %s: WP_DEBUG_LOG */
    11861186                        __( 'The value, %s, has been added to this website&#8217;s configuration file. This means any errors on the site will be written to a file which is potentially available to normal users.' ),
    11871187                        '<code>WP_DEBUG_LOG</code>'
     
    11981198                    '<p>%s</p>',
    11991199                    sprintf(
    1200                         /* translators: %s: Name of the constant used. */
    1201                         __( '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.' ),
    1202                         '<code>WP_DEBUG_DISPLAY</code>'
     1200                        /* translators: 1: WP_DEBUG_DISPLAY, 2: WP_DEBUG */
     1201                        __( '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.' ),
     1202                        '<code>WP_DEBUG_DISPLAY</code>',
     1203                        '<code>WP_DEBUG</code>'
    12031204                    )
    12041205                );
Note: See TracChangeset for help on using the changeset viewer.