From 893be2cf111798557a09fd584be190661c9ba512 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 17 Apr 2019 01:10:52 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-site-health-auto-updates.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 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 e308690930..d06ae33cb2 100644 --- a/wp-admin/includes/class-wp-site-health-auto-updates.php +++ b/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. */ diff --git a/wp-includes/version.php b/wp-includes/version.php index b1879dafbb..56345eb12d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.