[wp-trac] [WordPress Trac] #22218: Extra add_action() parameter
WordPress Trac
noreply at wordpress.org
Mon Oct 22 10:22:41 UTC 2012
#22218: Extra add_action() parameter
-------------------------+-----------------------
Reporter: dgwyer | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone:
Component: General | Version: 3.4.2
Severity: normal | Resolution:
Keywords: 2nd-opinion |
-------------------------+-----------------------
Changes (by nofearinc):
* status: closed => reopened
* resolution: wontfix =>
Comment:
Replying to [comment:5 nacin]:
> As scribu said, we wouldn't want to add anything else to add_action().
It needs to be kept fast and light, and it should be clear what its
purpose is. This conflates its purpose.
How about a decorator to add_action/filter? It could be a separate
function that helps for the numerous cases when arguments are needed and
won't alter the current behavior of add_action/add_filter.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22218#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list