Skip to:
Content

BuddyPress.org

Changes between Initial Version and Version 1 of Ticket #7318


Ignore:
Timestamp:
11/03/2016 09:37:58 PM (4 years ago)
Author:
slaFFik
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7318

    • Property Summary changed from Cleanup incorrect remove_action() usage to Cleanup incorrect remove_action() & remove_filter() usage
  • Ticket #7318 – Description

    initial v1  
    1 WordPress function `remove_action()` has 3 params:
     1WordPress functions `remove_action()` and `remove_filter()` have 3 params:
    22
    33{{{
    4 remove_action( $tag, $function_to_remove, $priority = 10 )
     4function remove_action( $tag, $function_to_remove, $priority = 10 ) {}
     5function remove_filter( $tag, $function_to_remove, $priority = 10 ) {}
    56}}}
    67
    7 While in some places in BuddyPress core it is called with 4 params, like this:
     8While in some places in BuddyPress core they are called with 4 params, like this:
    89
    910{{{
    1011remove_action( 'bp_activity_before_save', 'bp_activity_check_moderation_keys', 2, 1 );
     12remove_filter( 'bp_activity_generate_action_string', $actions->{$activity->component}->{$activity->type}['format_callback'], 10, 2 );
    1113}}}
    1214