[wp-trac] [WordPress Trac] #20776: Improve callback verification while executing hooks
WordPress Trac
wp-trac at lists.automattic.com
Tue May 29 14:36:21 UTC 2012
#20776: Improve callback verification while executing hooks
-------------------------+------------------------------
Reporter: ericlewis | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Comment (by nacin):
As $wp_filter's structure has changed over the years, so has the need for
this is_null() check. In [6320], some code went into remove_filter() which
caused empty priority arrays to be unset(). I can no longer reproduce the
original issue that caused [1394].
I would not be surprised if we could remove a few other checks as well,
such as the array cast on the foreach's. I did not investigate that,
however.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20776#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list