[wp-trac] Re: [WordPress Trac] #5231: add_action('all',
...) causes unexpected behaviour
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 7 19:59:19 GMT 2007
#5231: add_action('all', ...) causes unexpected behaviour
-------------------------------------+--------------------------------------
Reporter: tellyworth | Owner: anonymous
Type: defect | Status: reopened
Priority: normal | Milestone: 2.4
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+--------------------------------------
Comment (by ryan):
I think we need to revert back to one array for both filters and actions.
'all' support can be simplified to pass the name of the hook and an array
of all the args to functions hooked to 'all'. An 'all' function would not
be expected to return a value. 'all' functions won't filter anything.
They just get notification of the hook being processed and the args passed
to that hook and that's it.
--
Ticket URL: <http://trac.wordpress.org/ticket/5231#comment:37>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list