[wp-trac] [WordPress Trac] #51728: Fix uninitialized variable wp_filter
WordPress Trac
noreply at wordpress.org
Sun Nov 8 08:07:12 UTC 2020
#51728: Fix uninitialized variable wp_filter
--------------------------+----------------------
Reporter: mikaelmayer | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Plugins | Version: trunk
Severity: trivial | Resolution: invalid
Keywords: has-patch | Focuses:
--------------------------+----------------------
Changes (by SergeyBiryukov):
* component: General => Plugins
* milestone: Awaiting Review =>
Comment:
Hi there, welcome to WordPress Trac! Thanks for the ticket.
Just to clarify, `$wp_filter` is declared as a global earlier in
[source:tags/5.5.3/src/wp-includes/plugin.php?marks=28-34#L24 wp-
includes/plugin.php], so it is always set at this point and an `isset()`
check would be redundant.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51728#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list