Site Health: Remove reference to an undefined variable in `WP_Site_Health_Auto_Updates::test_constants()`.

Props diddledan.
Fixes #46952.
Built from https://develop.svn.wordpress.org/trunk@45223


git-svn-id: http://core.svn.wordpress.org/trunk@45032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-04-17 01:10:52 +00:00
parent 01dec9af0b
commit 893be2cf11
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ class WP_Site_Health_Auto_Updates {
* @return array The test results.
*/
public function test_constants( $constant, $value ) {
if ( defined( $constant ) && constant( $constant ) != $allowed_constants[ $constant ] ) {
if ( defined( $constant ) && constant( $constant ) != $value ) {
return array(
'description' => sprintf(
/* translators: %s: Name of the constant used. */

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.2-beta3-45222';
$wp_version = '5.2-beta3-45223';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.