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:
parent
260ee7308d
commit
dfeea03a58
|
@ -66,7 +66,7 @@ class WP_Site_Health_Auto_Updates {
|
||||||
* @return array The test results.
|
* @return array The test results.
|
||||||
*/
|
*/
|
||||||
public function test_constants( $constant, $value ) {
|
public function test_constants( $constant, $value ) {
|
||||||
if ( defined( $constant ) && constant( $constant ) != $allowed_constants[ $constant ] ) {
|
if ( defined( $constant ) && constant( $constant ) != $value ) {
|
||||||
return array(
|
return array(
|
||||||
'description' => sprintf(
|
'description' => sprintf(
|
||||||
/* translators: %s: Name of the constant used. */
|
/* translators: %s: Name of the constant used. */
|
||||||
|
|
Loading…
Reference in New Issue