From dfeea03a5891bd37612e6b81d3976aba701a559e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 17 Apr 2019 01:09:30 +0000 Subject: [PATCH] Site Health: Remove reference to an undefined variable in `WP_Site_Health_Auto_Updates::test_constants()`. Props diddledan. Fixes #46952. git-svn-id: https://develop.svn.wordpress.org/trunk@45223 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-site-health-auto-updates.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-wp-site-health-auto-updates.php b/src/wp-admin/includes/class-wp-site-health-auto-updates.php index e308690930..d06ae33cb2 100644 --- a/src/wp-admin/includes/class-wp-site-health-auto-updates.php +++ b/src/wp-admin/includes/class-wp-site-health-auto-updates.php @@ -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. */