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

WordPress Trac noreply at wordpress.org
Tue Oct 8 03:18:14 UTC 2019


#48123: Remove `$accepted_args` from hooks, whose callbacks do not have any
arguments
--------------------------+-------------------------------
 Reporter:  itowhid06     |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  low           |   Milestone:  5.3
Component:  General       |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  coding-standards
--------------------------+-------------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"46432" 46432]:
 {{{
 #!CommitTicketReference repository="" revision="46432"
 Coding Standards: Correct the number of accepted arguments in
 `add_action()` calls in `wp-includes/default-filters.php` for functions
 that don't accept any arguments.

 Props itowhid06, johnbillion, jrf.
 Fixes #48123.
 }}}

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


More information about the wp-trac mailing list