diff --git a/tests/phpunit/tests/user.php b/tests/phpunit/tests/user.php index 720fb137b7..faf6798ba7 100644 --- a/tests/phpunit/tests/user.php +++ b/tests/phpunit/tests/user.php @@ -968,8 +968,6 @@ class Tests_User extends WP_UnitTestCase { * @ticket 47902 */ public function test_wp_insert_user_with_empty_data() { - global $wpdb; - add_filter( 'wp_pre_insert_user_data', '__return_empty_array' ); $u = self::factory()->user->create();