mirror of
https://github.com/Automattic/wordpress-activitypub
synced 2024-10-18 16:23:34 +00:00
check Author-URL only if user is enabled for ActivityPub
thanks @cybeardjm
This commit is contained in:
parent
f4adecddf6
commit
9a5beb1885
1 changed files with 1 additions and 1 deletions
|
@ -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' ),
|
||||||
|
|
Loading…
Reference in a new issue