From 95a221767735665149b3d9a0abff8e8e831e1c2a Mon Sep 17 00:00:00 2001 From: claudiulodro Date: Tue, 21 Jul 2020 10:43:22 -0700 Subject: [PATCH] fix: remove early ad display calls --- includes/class-newspack-ads-model.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/includes/class-newspack-ads-model.php b/includes/class-newspack-ads-model.php index 5714bcd7..bc21158d 100644 --- a/includes/class-newspack-ads-model.php +++ b/includes/class-newspack-ads-model.php @@ -354,13 +354,12 @@ public static function code_for_ad_unit( $ad_unit ) { $largest = self::largest_ad_size( $sizes ); $code = sprintf( - "
", + "
", $network_code, $code, $unique_id, $largest[0], - $largest[1], - $unique_id + $largest[1] ); return $code; } @@ -485,13 +484,12 @@ function ( $item ) { ); } else { $markup[] = sprintf( - '
', + '
', $network_code, $code, $div_id, $width, - $height, - $div_id + $height ); } }