| @@ -25,9 +25,10 @@ | ||
| 25 | 25 | * @since 3.9.0 |
| 26 | 26 | */ |
| 27 | 27 | protected function exclude_events() { |
| 28 | 28 | // Share excluded post types, e.g. from Hummingbird. |
| 29 | - $public_events = (array) apply_filters( 'wd_audit_excluded_post_types', array( 'wphb_minify_group' ) ); | |
| 29 | + $public_events = apply_filters( 'wd_audit_excluded_post_types', array( 'wphb_minify_group' ) ); | |
| 30 | + $public_events = is_array( $public_events ) ? $public_events : (array) $public_events; | |
| 30 | 31 | $excluded_post_types = array( |
| 31 | 32 | // From Defender. |
| 32 | 33 | 'wdscan_result', |
| 33 | 34 | 'wdf_scan', |