[wp-trac] [WordPress Trac] #48123: Remove `$accepted_args` from hooks, whose callbacks do not have any arguments

WordPress Trac noreply at wordpress.org
Tue Sep 24 13:14:41 UTC 2019


#48123: Remove `$accepted_args` from hooks, whose callbacks do not have any
arguments
-------------------------------------+-----------------------------
 Reporter:  itowhid06                |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  low                      |   Milestone:  Future Release
Component:  General                  |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:
-------------------------------------+-----------------------------
Changes (by johnbillion):

 * keywords:  has-patch => has-patch needs-refresh
 * priority:  normal => low
 * version:  trunk =>
 * milestone:  Awaiting Review => Future Release


Comment:

 Thanks for the patch @itowhid06 . The default value for the
 `$accepted_args` parameter of `add_action()` is `1`, so this change
 doesn't correct anything.

 Can you update the patch to change the parameter to `0` where appropriate?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48123#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list