[wp-trac] [WordPress Trac] #14671: Deprecate the "accepted args" argument in add_filter() and add_action()

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 14 21:51:47 UTC 2011


#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 5ubliminal):

 To be totally paranoid regarding performance, '''statics''' can be used to
 store ReflectionFunction results for '''isUserDefined''',
 '''getNumberOfParameters''' and '''getNumberOfRequiredParameters''' in
 case of repeat calls to same function ''[won't work for Closures
 though]''.

 But I'd say that's a bit overdoing it.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14671#comment:20>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list