From 9a5beb1885213286f25e4a962ab9e3b2b0cca086 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Fri, 19 Apr 2024 13:43:09 +0200 Subject: [PATCH] check Author-URL only if user is enabled for ActivityPub thanks @cybeardjm --- includes/class-health-check.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-health-check.php b/includes/class-health-check.php index e07684f9..878ee85d 100644 --- a/includes/class-health-check.php +++ b/includes/class-health-check.php @@ -27,7 +27,7 @@ class Health_Check { } public static function add_tests( $tests ) { - if ( ! is_user_type_disabled( 'user' ) ) { + if ( ! is_user_disabled( get_current_user_id() ) ) { $tests['direct']['activitypub_test_author_url'] = array( 'label' => \__( 'Author URL test', 'activitypub' ), 'test' => array( self::class, 'test_author_url' ),