From 2c8c3fed637f55757e9e4e0213834c7e425df702 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Tue, 27 Sep 2022 10:18:12 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@54325 git-svn-id: http://core.svn.wordpress.org/trunk@53884 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-site-health-auto-updates.php | 7 ++++--- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/class-wp-site-health-auto-updates.php b/wp-admin/includes/class-wp-site-health-auto-updates.php index fdf02496b7..f6fb7d79b9 100644 --- a/wp-admin/includes/class-wp-site-health-auto-updates.php +++ b/wp-admin/includes/class-wp-site-health-auto-updates.php @@ -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.' ), - "$constant" + /* translators: 1: Name of the constant used. 2: Value of the constant used. */ + __( 'The %1$s constant is defined as %2$s' ), + "$constant", + '' . esc_html( var_export( constant( $constant ), true ) ) . '' ), 'severity' => 'fail', ); diff --git a/wp-includes/version.php b/wp-includes/version.php index b52de8b49f..af302a23eb 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-beta1-54324'; +$wp_version = '6.1-beta1-54325'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.