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/deprecated/2.5.php

    r10606 r11256  
    6363    );
    6464
    65     remove_filter( 'bp_email_get_property', 'bp_core_deprecated_email_filters', 20, 4 );
     65    remove_filter( 'bp_email_get_property', 'bp_core_deprecated_email_filters', 20 );
    6666    $email_type = $email->get( 'type' );
    6767    $tokens     = $email->get( 'tokens' );
     
    702702    );
    703703
    704     remove_action( 'bp_send_email_success', 'bp_core_deprecated_email_actions', 20, 2 );
     704    remove_action( 'bp_send_email_success', 'bp_core_deprecated_email_actions', 20 );
    705705    $email_content = $email->get( 'content' );
    706706    $email_subject = $email->get( 'subject' );
Note: See TracChangeset for help on using the changeset viewer.