mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Site Health: Fix incorrect message about the status of WP_AUTO_UPDATE_CORE.
Previously, the Site Health message said "The WP_AUTO_UPDATE_CORE constant is defined and enabled" when in fact the constant was defined and disabled using `define( 'WP_AUTO_UPDATE_CORE', false );`. This changeset improves the message by providing the value of the constant. For example: "The WP_AUTO_UPDATE_CORE constant is defined as false". Props johnbillion, chrisbudd1, robinwpdeveloper, audrasjb, Clorith. Fixes #51041. git-svn-id: https://develop.svn.wordpress.org/trunk@54325 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -74,9 +74,10 @@ class WP_Site_Health_Auto_Updates {
|
||||
if ( defined( $constant ) && ! in_array( constant( $constant ), $acceptable_values, true ) ) {
|
||||
return array(
|
||||
'description' => sprintf(
|
||||
/* translators: %s: Name of the constant used. */
|
||||
__( 'The %s constant is defined and enabled.' ),
|
||||
"<code>$constant</code>"
|
||||
/* translators: 1: Name of the constant used. 2: Value of the constant used. */
|
||||
__( 'The %1$s constant is defined as %2$s' ),
|
||||
"<code>$constant</code>",
|
||||
'<code>' . esc_html( var_export( constant( $constant ), true ) ) . '</code>'
|
||||
),
|
||||
'severity' => 'fail',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user