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-core/admin/bp-core-admin-functions.php

    r11179 r11256  
    11421142    $loader = basename( constant( 'BP_PLUGIN_DIR' ) ) . '/bp-loader.php';
    11431143
    1144     remove_action( "after_plugin_row_{$loader}", 'wp_plugin_update_row', 10, 2 );
     1144    remove_action( "after_plugin_row_{$loader}", 'wp_plugin_update_row', 10 );
    11451145    add_action( "after_plugin_row_{$loader}", 'bp_core_admin_php52_plugin_row', 10, 2 );
    11461146}
Note: See TracChangeset for help on using the changeset viewer.