-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunmus_sitehealth.php
More file actions
45 lines (36 loc) · 915 Bytes
/
unmus_sitehealth.php
File metadata and controls
45 lines (36 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/**
* Site Health
*
* @package unmus
* @since 0.6
*/
// Security: Stops code execution if WordPress is not loaded
if (!defined('ABSPATH')) { exit; }
/**
* Disable Persistent Object Cache Check @ Site Health
*
* @since 0.7
*/
add_filter('site_status_should_suggest_persistent_object_cache', '__return_false');
/**
* Disable Threaded Comments Check @ Activity Pub
*
* @since 0.8
*/
function unmus_activitypub_threaded_comments_check( $tests ) {
unset( $tests['direct']['activitypub_test_threaded_comments'] );
return $tests;
}
add_filter( 'site_status_tests', 'unmus_activitypub_threaded_comments_check',100 );
/**
* Disable WordPress Cron Check @ Activity Pub
*
* @since 0.9
*/
function unmus_activitypub_wpcron_check( $tests ) {
unset( $tests['direct']['activitypub_test_wp_cron'] );
return $tests;
}
add_filter( 'site_status_tests', 'unmus_activitypub_wpcron_check',100 );
?>