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

WordPress Trac noreply at wordpress.org
Sat May 18 09:57:43 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 Rarst):

 Replying to [comment:28 nacin]:
 > If we're going to make a function slower, it should be apply_filters()
 and do_action(). The functions add_filter() and add_action() get called
 thousands of times and need to be as fast as possible.

 `apply_filters()` is used in translate for `gettext` and routinely adds up
 to hundreds/thousands calls.

 At current point personally I wouldn't think of ''any'' performance
 degradation to these as acceptable. It's a glue that holds everything
 together and due to core (over)use is hard to manage for performance.

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


More information about the wp-trac mailing list