[wp-trac] [WordPress Trac] #46952: $allowed_constants is not defined in class-wp-site-health-auto-updates.php
WordPress Trac
noreply at wordpress.org
Tue Apr 16 20:36:52 UTC 2019
#46952: $allowed_constants is not defined in class-wp-site-health-auto-updates.php
--------------------------+-----------------------------
Reporter: diddledan | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
In the file `wp-admin/includes/class-wp-site-health-auto-updates.php` line
69 a test is made against the variable `$allowed_constants` which is
guaranteed to be undefined because it is not set within the function nor
is it pulled via `global`. This is the only reference within the entire
WordPress source code to a variable with this name, so even if we add
`global` it will still be undefined unless a plugin or theme defines it.
https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/class-
wp-site-health-auto-updates.php#L69
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46952>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list