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
This commit is contained in:
Sergey Biryukov 2019-04-17 01:09:30 +00:00
parent 260ee7308d
commit dfeea03a58
1 changed files with 1 additions and 1 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. */