[wp-trac] [WordPress Trac] #14671: Deprecate the "accepted args" argument in add_filter() and add_action()
WordPress Trac
noreply at wordpress.org
Thu May 30 19:29:23 UTC 2013
#14671: Deprecate the "accepted args" argument in add_filter() and add_action()
-------------------------+-----------------------------
Reporter: markjaquith | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+-----------------------------
Comment (by nacin):
Replying to [comment:38 alex-ye]:
> Instead of deprecate the "accepted args" I love to see an ability to
pass -1 to indicate that the function can accept any args count.
Yes, that's probably what we'll need to do here.
In hindsight, it would have been -1 to begin with, and thus the esc_url()
example, you'd force 1. By defaulting to 1, we tied our hands.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14671#comment:39>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list