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/tests/phpunit/testcases/core/suggestions.php

    r9819 r11256  
    5252
    5353        // Create some dummy friendships (but not the corresponding activity items).
    54         remove_action( 'friends_friendship_accepted', 'bp_friends_friendship_accepted_activity', 10, 4 );
     54        remove_action( 'friends_friendship_accepted', 'bp_friends_friendship_accepted_activity', 10 );
    5555        friends_add_friend( self::$current_user, self::$user_ids['aardvark'], true );
    5656        friends_add_friend( self::$current_user, self::$user_ids['cat'], true );
Note: See TracChangeset for help on using the changeset viewer.