Skip to content

Commit 034a14f

Browse files
authored
Merge pull request #84 from circuscode/develop
Exclude wpCron SiteHealth
2 parents 45005a8 + eae7234 commit 034a14f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ Release pending.
232232
* Added: Fade out WB REST CACHE Icon @ Admin Bar
233233
* Added: Disable UpdraftPlus @ Admin Bar
234234
* Added: Exclude specific plugins from Auto Update
235+
* Added: Exclude ActivityPub WP_Cron Check (SiteHealth)
235236
* Fixed: Content Type Return @ WP REST CACHE
236237
* Fixed: Force CPTs in Tag Archives
237238
* Changed: Remove Mastodon Account @ Federated Comment extended with Mentions

unmus_sitehealth.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,16 @@ function unmus_activitypub_threaded_comments_check( $tests ) {
3030
}
3131
add_filter( 'site_status_tests', 'unmus_activitypub_threaded_comments_check',100 );
3232

33+
/**
34+
* Disable WordPress Cron Check @ Activity Pub
35+
*
36+
* @since 0.9
37+
*/
38+
39+
function unmus_activitypub_wpcron_check( $tests ) {
40+
unset( $tests['direct']['activitypub_test_wp_cron'] );
41+
return $tests;
42+
}
43+
add_filter( 'site_status_tests', 'unmus_activitypub_wpcron_check',100 );
44+
3345
?>

0 commit comments

Comments
 (0)