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

buddypress-trac noreply at wordpress.org
Thu Nov 3 21:27:27 UTC 2016


#7318: Cleanup incorrect remove_action() usage
--------------------------+----------------------------
 Reporter:  slaFFik       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  2.8
Component:  Core          |    Version:
 Severity:  normal        |   Keywords:  good-first-bug
--------------------------+----------------------------
 WordPress function `remove_action()` has 3 params:

 {{{
 remove_action( $tag, $function_to_remove, $priority = 10 )
 }}}

 While in some places in BuddyPress core it is called with 4 params, like
 this:

 {{{
 remove_action( 'bp_activity_before_save',
 'bp_activity_check_moderation_keys', 2, 1 );
 }}}

 The 4th param should be removed as useless.

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


More information about the buddypress-trac mailing list