Changes between Initial Version and Version 1 of Ticket #7318
- Timestamp:
- 11/03/2016 09:37:58 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #7318
-
Property
Summary
changed from
Cleanup incorrect remove_action() usage
toCleanup incorrect remove_action() & remove_filter() usage
-
Property
Summary
changed from
-
Ticket #7318 – Description
initial v1 1 WordPress function `remove_action()` has3 params:1 WordPress functions `remove_action()` and `remove_filter()` have 3 params: 2 2 3 3 {{{ 4 remove_action( $tag, $function_to_remove, $priority = 10 ) 4 function remove_action( $tag, $function_to_remove, $priority = 10 ) {} 5 function remove_filter( $tag, $function_to_remove, $priority = 10 ) {} 5 6 }}} 6 7 7 While in some places in BuddyPress core it iscalled with 4 params, like this:8 While in some places in BuddyPress core they are called with 4 params, like this: 8 9 9 10 {{{ 10 11 remove_action( 'bp_activity_before_save', 'bp_activity_check_moderation_keys', 2, 1 ); 12 remove_filter( 'bp_activity_generate_action_string', $actions->{$activity->component}->{$activity->type}['format_callback'], 10, 2 ); 11 13 }}} 12 14