diff options
Diffstat (limited to 'plugins/jetpack/extensions/blocks/wordads/wordads.php')
-rw-r--r-- | plugins/jetpack/extensions/blocks/wordads/wordads.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/jetpack/extensions/blocks/wordads/wordads.php b/plugins/jetpack/extensions/blocks/wordads/wordads.php index 8cb8ea2a..9f67d58b 100644 --- a/plugins/jetpack/extensions/blocks/wordads/wordads.php +++ b/plugins/jetpack/extensions/blocks/wordads/wordads.php @@ -76,7 +76,12 @@ class Jetpack_WordAds_Gutenblock { global $wordads; /** This filter is already documented in modules/wordads/wordads.php `insert_ad()` */ - if ( empty( $wordads ) || is_feed() || apply_filters( 'wordads_inpost_disable', false ) ) { + if ( + empty( $wordads ) + || empty( $wordads->params ) + || is_feed() + || apply_filters( 'wordads_inpost_disable', false ) + ) { return ''; } |