From dd7daf29da1acae661890795be9fa90bb0481494 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Thu, 20 Jul 2023 18:33:24 +0200 Subject: [PATCH] simpler filter thanks @mattwiebe --- tests/test-class-activitypub-activity-dispatcher.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/test-class-activitypub-activity-dispatcher.php b/tests/test-class-activitypub-activity-dispatcher.php index b1eb3a0..b7534a0 100644 --- a/tests/test-class-activitypub-activity-dispatcher.php +++ b/tests/test-class-activitypub-activity-dispatcher.php @@ -95,12 +95,7 @@ class Test_Activitypub_Activity_Dispatcher extends ActivityPub_TestCase_Cache_HT } public function test_dispatch_announce() { - add_filter( - 'activitypub_is_user_type_disabled', - function( $value ) { - return false; - } - ); + add_filter( 'activitypub_is_user_type_disabled', '__return_false' ); $followers = array( 'https://example.com/author/jon' );