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/functions/bpCoreGetDirectoryPageIds.php

    r11155 r11256  
    311311        $this->assertNotEmpty( $pages->activate );
    312312
    313         remove_action( 'update_option_users_can_register', array( $admin, 'single_site_registration_on' ), 10, 2 );
     313        remove_action( 'update_option_users_can_register', array( $admin, 'single_site_registration_on' ), 10 );
    314314    }
    315315
     
    338338        $this->assertNotEmpty( $pages->activate );
    339339
    340         remove_action( 'update_site_option_registration', array( $admin, 'multisite_registration_on' ), 10, 2 );
     340        remove_action( 'update_site_option_registration', array( $admin, 'multisite_registration_on' ), 10 );
    341341    }
    342342}
Note: See TracChangeset for help on using the changeset viewer.