diff --git a/modules/wordads/wordads.php b/modules/wordads/wordads.php index 0bf731ac994a0..95e52eef2aaa9 100644 --- a/modules/wordads/wordads.php +++ b/modules/wordads/wordads.php @@ -426,11 +426,11 @@ function get_ad_snippet( $height, $width, $location = '', $css = '' ) { $this->ads[] = array( 'location' => $location, 'width' => $width, 'height' => $height ); $ad_number = count( $this->ads ); // Max 6 ads per page. - if ( $ad_number > 6 ) { + if ( $ad_number > 5 && 'top' !== $location ) { return; } $data_tags = $this->params->cloudflare ? ' data-cfasync="false"' : ''; - + return <<