check Author-URL only if user is enabled for ActivityPub

thanks @cybeardjm
This commit is contained in:
Matthias Pfefferle 2024-04-19 13:43:09 +02:00
parent f4adecddf6
commit 9a5beb1885

View file

@ -27,7 +27,7 @@ class Health_Check {
} }
public static function add_tests( $tests ) { 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( $tests['direct']['activitypub_test_author_url'] = array(
'label' => \__( 'Author URL test', 'activitypub' ), 'label' => \__( 'Author URL test', 'activitypub' ),
'test' => array( self::class, 'test_author_url' ), 'test' => array( self::class, 'test_author_url' ),