Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/28/2016 10:33:55 PM (7 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-members/bp-members-functions.php

    r11110 r11256  
    11631163    // However, we mirror it there for backward compatibility. Do not use!
    11641164    // Remove our warning and re-add.
    1165     remove_filter( 'update_user_metadata', '_bp_update_user_meta_last_activity_warning', 10, 4 );
    1166     remove_filter( 'get_user_metadata', '_bp_get_user_meta_last_activity_warning', 10, 3 );
     1165    remove_filter( 'update_user_metadata', '_bp_update_user_meta_last_activity_warning', 10 );
     1166    remove_filter( 'get_user_metadata', '_bp_get_user_meta_last_activity_warning', 10 );
    11671167    bp_update_user_meta( $user_id, 'last_activity', $time );
    11681168    add_filter( 'update_user_metadata', '_bp_update_user_meta_last_activity_warning', 10, 4 );
Note: See TracChangeset for help on using the changeset viewer.