AdSense Plugin WP QUADS - Version 2.0.40.1

Version Description

(05 February 2022) = * Fixed: Adsense ads not loading #467

Download this release

Release Info

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

Code changes from version 2.0.40 to 2.0.40.1

includes/render-ad-functions.php CHANGED
@@ -84,9 +84,7 @@ function quads_render_ad( $id, $string, $widget = false,$ampsupport='' ) {
84
  function quads_common_head_code(){
85
  global $quads_options;
86
  if ( isset($quads_options['lazy_load_global']) && $quads_options['lazy_load_global']== true) {
87
- if ( ( function_exists( 'ampforwp_is_amp_endpoint' ) && !ampforwp_is_amp_endpoint() ) || function_exists( 'is_amp_endpoint' ) && !is_amp_endpoint() ) {
88
  echo quads_load_loading_script();
89
- }
90
  }
91
  $data_slot = '';
92
  $adsense = false;
@@ -182,7 +180,6 @@ function quads_common_head_code(){
182
  }
183
  if( $data_slot !=''){
184
 
185
- // if ( function_exists( 'ampforwp_is_amp_endpoint' ) && !ampforwp_is_amp_endpoint() && function_exists('is_amp_endpoint') && !is_amp_endpoint() ) {
186
  echo "<script async src='https://securepubads.g.doubleclick.net/tag/js/gpt.js'></script>
187
  <script>
188
  window.googletag = window.googletag || {cmd: []};
@@ -192,13 +189,10 @@ function quads_common_head_code(){
192
  googletag.enableServices();
193
  });
194
  </script>";
195
- // }
196
 
197
  }
198
  if($adsense){
199
- if ( ( function_exists( 'ampforwp_is_amp_endpoint' ) && !ampforwp_is_amp_endpoint() ) || function_exists( 'is_amp_endpoint' ) && !is_amp_endpoint() ) {
200
  echo '<script src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>';
201
- }
202
 
203
  }
204
 
84
  function quads_common_head_code(){
85
  global $quads_options;
86
  if ( isset($quads_options['lazy_load_global']) && $quads_options['lazy_load_global']== true) {
 
87
  echo quads_load_loading_script();
 
88
  }
89
  $data_slot = '';
90
  $adsense = false;
180
  }
181
  if( $data_slot !=''){
182
 
 
183
  echo "<script async src='https://securepubads.g.doubleclick.net/tag/js/gpt.js'></script>
184
  <script>
185
  window.googletag = window.googletag || {cmd: []};
189
  googletag.enableServices();
190
  });
191
  </script>";
 
192
 
193
  }
194
  if($adsense){
 
195
  echo '<script src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>';
 
196
 
197
  }
198
 
includes/template-functions.php CHANGED
@@ -281,9 +281,7 @@ function quads_from_adsforwp_manual_ads($atts ){
281
  }
282
  function quads_adblocker_detector(){
283
  $js_dir = QUADS_PLUGIN_URL . 'assets/js/';
284
- if ( ( function_exists( 'ampforwp_is_amp_endpoint' ) && !ampforwp_is_amp_endpoint() ) || function_exists( 'is_amp_endpoint' ) && !is_amp_endpoint() ) {
285
  wp_enqueue_script( 'quads-admin-ads', $js_dir . 'ads.js', array('jquery'), QUADS_VERSION, false );
286
- }
287
  }
288
  /**
289
  * It is default settings value, if value is not set for any option in setting section
281
  }
282
  function quads_adblocker_detector(){
283
  $js_dir = QUADS_PLUGIN_URL . 'assets/js/';
 
284
  wp_enqueue_script( 'quads-admin-ads', $js_dir . 'ads.js', array('jquery'), QUADS_VERSION, false );
 
285
  }
286
  /**
287
  * It is default settings value, if value is not set for any option in setting section
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.40
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.40' );
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.40.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
 
39
  // Plugin version
40
  if( !defined( 'QUADS_VERSION' ) ) {
41
+ define( 'QUADS_VERSION', '2.0.40.1' );
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.8
12
  Requires PHP: 5.4
13
- Stable tag: 2.0.40
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
 
@@ -204,6 +204,9 @@ Alternative Installation:
204
 
205
  == Changelog ==
206
 
 
 
 
207
  = 2.0.40 (31 January 2022) =
208
  * Added: Live AD Rotation in one group as a grid #461
209
  * Fixed: Validation errors in transitional mode with Official AMP Plugin #456
10
  Requires at least: 3.6+
11
  Tested up to: 5.8
12
  Requires PHP: 5.4
13
+ Stable tag: 2.0.40.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
 
204
 
205
  == Changelog ==
206
 
207
+ = 2.0.40.1 (05 February 2022) =
208
+ * Fixed: Adsense ads not loading #467
209
+
210
  = 2.0.40 (31 January 2022) =
211
  * Added: Live AD Rotation in one group as a grid #461
212
  * Fixed: Validation errors in transitional mode with Official AMP Plugin #456