[wp-trac] [WordPress Trac] #14671: Deprecate the "accepted args" argument in add_filter() and add_action()
WordPress Trac
wp-trac at lists.automattic.com
Sun Aug 22 20:00:17 UTC 2010
#14671: Deprecate the "accepted args" argument in add_filter() and add_action()
-------------------------+--------------------------------------------------
Reporter: markjaquith | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.1
Component: General | Version:
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
There is no harm in passing additional arguments to action/hook callbacks.
Why do we force developers to explicitly ask for additional arguments to
be passed? It is a maximum, and it doesn't matter if the maximum is
exceeded. We can just pass all the arguments, all the time. Callbacks can
use them, or ignore them. {{{add_action()}}} and {{{add_filter()}}} can
lose their 4th argument.
Ran this by koopersmith and beaulebens, they couldn't find any reasons
this would be a problem.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14671>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list