Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/28/2016 10:33:55 PM (8 years ago)
Author:
djpaul
Message:

Fix incorrect remove_action and remove_filter usage for WordPress 4.7.

remove_action and remove_filter formally accepted a fourth parameter until WP 4.7; it's only with the introduction of the WP_Hook class that the function signature changed. Prior to WP 4.7, the fourth parameter was unused, so it does no harm to remove it and tidy things up.

Fixes #7318

Props ketuchetan

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-admin.php

    r10882 r11256  
    394394                     * which contains one of these listed keys.
    395395                     */
    396                     remove_action( 'bp_activity_before_save', 'bp_activity_check_moderation_keys', 2, 1 );
    397                     remove_action( 'bp_activity_before_save', 'bp_activity_check_blacklist_keys',  2, 1 );
     396                    remove_action( 'bp_activity_before_save', 'bp_activity_check_moderation_keys', 2 );
     397                    remove_action( 'bp_activity_before_save', 'bp_activity_check_blacklist_keys', 2 );
    398398
    399399                    bp_activity_mark_as_ham( $activity );
Note: See TracChangeset for help on using the changeset viewer.