[buddypress-trac] [BuddyPress Trac] #7318: Cleanup incorrect remove_action() & remove_filter() usage

buddypress-trac noreply at wordpress.org
Fri Nov 4 02:43:42 UTC 2016


#7318: Cleanup incorrect remove_action() & remove_filter() usage
----------------------------------------+------------------
 Reporter:  slaFFik                     |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  low                         |   Milestone:  2.8
Component:  Core                        |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  good-first-bug needs-patch  |
----------------------------------------+------------------
Changes (by boonebgorges):

 * keywords:  good-first-bug => good-first-bug needs-patch
 * priority:  normal => low


Comment:

 `remove_action()` and `remove_filter()` formally accepted a fourth
 parameter until 4.7; it's only with the introduction of `WP_Hook` that the
 function signature changed. But prior to 4.7, the parameter was unused, so
 it does no harm to remove it.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7318#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list