diff --git a/projects/plugins/jetpack/modules/wordads/php/class-wordads-smart.php b/projects/plugins/jetpack/modules/wordads/php/class-wordads-smart.php index 7b846b309dd06..7852d599d838b 100644 --- a/projects/plugins/jetpack/modules/wordads/php/class-wordads-smart.php +++ b/projects/plugins/jetpack/modules/wordads/php/class-wordads-smart.php @@ -123,8 +123,12 @@ public function init( WordAds_Params $params ) { // TODO: refactor to remove the need to do this $this->is_inline_enabled = $this->formats['inline']['enabled']; - // Insert ads. - $this->insert_ads(); + // TODO: Is this necessary? if we want to always run Smart insert ads logic after IPW migrations + $has_any_format_enabled = in_array( true, array_column( $this->formats, 'enabled' ), true ); + if ( $has_any_format_enabled ) { + // Insert ads. + $this->insert_ads(); + } } /**