WordPress.org

Make WordPress Core

Changeset 45223


Ignore:
Timestamp:
04/17/2019 01:09:30 AM (20 months ago)
Author:
SergeyBiryukov
Message:

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

Props diddledan.
Fixes #46952.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health-auto-updates.php

    r45222 r45223  
    6767     */
    6868    public function test_constants( $constant, $value ) {
    69         if ( defined( $constant ) && constant( $constant ) != $allowed_constants[ $constant ] ) {
     69        if ( defined( $constant ) && constant( $constant ) != $value ) {
    7070            return array(
    7171                'description' => sprintf(
Note: See TracChangeset for help on using the changeset viewer.