[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 21:14:08 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:     
-------------------------+--------------------------------------------------

Comment(by Denis-de-Bernardy):

 If memory serbes, there is huge harm in passing more arguments than needed
 to php's built-in functions.

 {{{
 addslahes('test', 'test'); // warning or fatal?
 }}}

 Userland functions can accept additional args without issues.

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


More information about the wp-trac mailing list