AdSense Plugin WP QUADS - Version 2.0.12.3

Version Description

(23th September 2020) = * Fix: Fatal error #259

Download this release

Release Info

Developer wpquads
Plugin Icon 128x128 AdSense Plugin WP QUADS
Version 2.0.12.3
Comparing to
See all releases

Code changes from version 2.0.12.1 to 2.0.12.3

includes/render-ad-functions.php CHANGED
@@ -463,7 +463,7 @@ function quads_render_google_async_new( $id ) {
463
 
464
  }else{
465
  $ad_data = ' style="display:block;"
466
- data-ad-format="autorelaxed"';
467
 
468
  }
469
 
463
 
464
  }else{
465
  $ad_data = ' style="display:block;"
466
+ data-ad-format="auto"';
467
 
468
  }
469
 
includes/template-functions.php CHANGED
@@ -1916,7 +1916,7 @@ function quads_del_element($array, $idx) {
1916
  continue;
1917
  }
1918
  $display_after_every = (isset($ads['display_after_every']) && !empty($ads['display_after_every'])) ? $ads['display_after_every'] : false;
1919
- if($ads['position'] == 'amp_ads_in_loops' && (isset($ads['ads_loop_number']) && ($ads['ads_loop_number'] == $curr_index || ($display_after_every && $curr_index!== 0 && ($curr_index % $ads['ads_loop_number'] == 0))))){
1920
  $tag= '<!--CusAds'.$ads['ad_id'].'-->';
1921
  echo quads_replace_ads_new( $tag, 'CusAds' . $ads['ad_id'], $ads['ad_id'] );
1922
  }
@@ -2064,7 +2064,9 @@ if($repeat_paragraph){
2064
 
2065
  foreach ( $ad_dom->getElementsByTagName( 'body' )->item( 0 )->childNodes as $importedNode ) {
2066
  $importedNode = $doc->importNode( $importedNode, true );
2067
- $ref_node->parentNode->insertBefore( $importedNode, $ref_node );
 
 
2068
  }
2069
  }
2070
  }else{
@@ -2076,7 +2078,9 @@ if($repeat_paragraph){
2076
 
2077
  foreach ( $ad_dom->getElementsByTagName( 'body' )->item( 0 )->childNodes as $importedNode ) {
2078
  $importedNode = $doc->importNode( $importedNode, true );
2079
- $ref_node->parentNode->insertBefore( $importedNode, $ref_node );
 
 
2080
  }
2081
  }
2082
  $content =$doc->saveHTML();
1916
  continue;
1917
  }
1918
  $display_after_every = (isset($ads['display_after_every']) && !empty($ads['display_after_every'])) ? $ads['display_after_every'] : false;
1919
+ if(isset($ads['position'] ) && $ads['position'] == 'amp_ads_in_loops' && (isset($ads['ads_loop_number']) && ($ads['ads_loop_number'] == $curr_index || ($display_after_every && $curr_index!== 0 && ($curr_index % $ads['ads_loop_number'] == 0))))){
1920
  $tag= '<!--CusAds'.$ads['ad_id'].'-->';
1921
  echo quads_replace_ads_new( $tag, 'CusAds' . $ads['ad_id'], $ads['ad_id'] );
1922
  }
2064
 
2065
  foreach ( $ad_dom->getElementsByTagName( 'body' )->item( 0 )->childNodes as $importedNode ) {
2066
  $importedNode = $doc->importNode( $importedNode, true );
2067
+ if($ref_node ){
2068
+ $ref_node->parentNode->insertBefore( $importedNode, $ref_node );
2069
+ }
2070
  }
2071
  }
2072
  }else{
2078
 
2079
  foreach ( $ad_dom->getElementsByTagName( 'body' )->item( 0 )->childNodes as $importedNode ) {
2080
  $importedNode = $doc->importNode( $importedNode, true );
2081
+ if($ref_node ){
2082
+ $ref_node->parentNode->insertBefore( $importedNode, $ref_node );
2083
+ }
2084
  }
2085
  }
2086
  $content =$doc->saveHTML();
package.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "quick-adsense-reloaded",
3
- "version": "2.0.12.1",
4
  "devDependencies": {
5
  "grunt": "~0.4.5",
6
  "grunt-contrib-clean": "~0.6.0",
1
  {
2
  "name": "quick-adsense-reloaded",
3
+ "version": "2.0.12.3",
4
  "devDependencies": {
5
  "grunt": "~0.4.5",
6
  "grunt-contrib-clean": "~0.6.0",
quick-adsense-reloaded.php CHANGED
@@ -6,7 +6,7 @@
6
  * Description: Insert Google AdSense and other ad formats fully automatic into your website
7
  * Author: WP Quads
8
  * Author URI: https://wordpress.org/plugins/quick-adsense-reloaded/
9
- * Version: 2.0.12.1
10
  * Text Domain: quick-adsense-reloaded
11
  * Domain Path: languages
12
  * Credits: WP QUADS - Quick AdSense Reloaded is a fork of Quick AdSense
@@ -38,7 +38,7 @@ if( !defined( 'ABSPATH' ) )
38
 
39
  // Plugin version
40
  if( !defined( 'QUADS_VERSION' ) ) {
41
- define( 'QUADS_VERSION', '2.0.12.1' );
42
  }
43
 
44
  // Plugin name
6
  * Description: Insert Google AdSense and other ad formats fully automatic into your website
7
  * Author: WP Quads
8
  * Author URI: https://wordpress.org/plugins/quick-adsense-reloaded/
9
+ * Version: 2.0.12.3
10
  * Text Domain: quick-adsense-reloaded
11
  * Domain Path: languages
12
  * Credits: WP QUADS - Quick AdSense Reloaded is a fork of Quick AdSense
38
 
39
  // Plugin version
40
  if( !defined( 'QUADS_VERSION' ) ) {
41
+ define( 'QUADS_VERSION', '2.0.12.3' );
42
  }
43
 
44
  // Plugin name
readme.txt CHANGED
@@ -10,7 +10,7 @@ Tags: ad manager, ads, adsense, amp, banner
10
  Requires at least: 3.6+
11
  Tested up to: 5.5.1
12
  Requires PHP: 5.3
13
- Stable tag: 2.0.12.1
14
 
15
  Ads & AdSense Ad Plugin is the quickest way to insert Google AdSense & other ads into your website. Google AdSense integration with Google AMP support.
16
 
@@ -194,6 +194,12 @@ Alternative Installation:
194
 
195
 
196
  == Changelog ==
 
 
 
 
 
 
197
  = 2.0.12.1 (14th September 2020) =
198
  * Fix: Fixed Language issue. #254
199
 
@@ -217,8 +223,6 @@ Alternative Installation:
217
  * Fix: Ads inside the blockquote #246
218
  * Fix: Potential issue with the latest React / NPM version #250
219
 
220
-
221
-
222
  = 2.0.11.1 (27th August 2020) =
223
  * New: Geo Location improvements #156
224
 
10
  Requires at least: 3.6+
11
  Tested up to: 5.5.1
12
  Requires PHP: 5.3
13
+ Stable tag: 2.0.12.3
14
 
15
  Ads & AdSense Ad Plugin is the quickest way to insert Google AdSense & other ads into your website. Google AdSense integration with Google AMP support.
16
 
194
 
195
 
196
  == Changelog ==
197
+ = 2.0.12.3 (23th September 2020) =
198
+ * Fix: Fatal error #259
199
+
200
+ = 2.0.12.2 (15th September 2020) =
201
+ * Fix: Extra space/gap on ads for the mobile responsive ads #256
202
+
203
  = 2.0.12.1 (14th September 2020) =
204
  * Fix: Fixed Language issue. #254
205
 
223
  * Fix: Ads inside the blockquote #246
224
  * Fix: Potential issue with the latest React / NPM version #250
225
 
 
 
226
  = 2.0.11.1 (27th August 2020) =
227
  * New: Geo Location improvements #156
228