[wp-trac] [WordPress Trac] #21169: remove_action on a tag within do_action for that tag can cause actions to be missed
WordPress Trac
wp-trac at lists.automattic.com
Fri Jul 20 05:22:23 UTC 2012
#21169: remove_action on a tag within do_action for that tag can cause actions to
be missed
-------------------------------------+------------------
Reporter: devesine | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.5
Component: Plugins | Version:
Severity: major | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+------------------
Comment (by nacin):
Some thoughts:
* The is_null() checks can also go. See #21321.
* Not sure if there is a need to cast `$next['value']` to an array. If we
found an element in `$wp_filter[ $tag ]` (as in, `!== false`), it's going
to be an array of functions tied to a priority, and not anything else.
Both changes should shave a bit of time off of this.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21169#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list