AdSense Plugin WP QUADS - Version 1.8.18

Version Description

  • Fix: The content missing issue in Wordpress 5.4 version.
  • Fix: Fixed amp validation issue.

=

Download this release

Release Info

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

Code changes from version 1.8.17 to 1.8.18

includes/frontend-checks.php CHANGED
@@ -18,7 +18,15 @@ function quads_frontend_checks_init() {
18
  if( !is_admin() && is_admin_bar_showing() && current_user_can( 'update_plugins' )
19
  ) {
20
  add_action( 'admin_bar_menu', 'quads_add_admin_bar_menu', 1000 );
21
- add_filter( 'the_content', 'quads_check_the_content_filter' );
 
 
 
 
 
 
 
 
22
  add_filter( 'wp_footer', 'quads_check_adblocker', -101 );
23
  add_filter( 'quads-ad-output', 'after_ad_output', 10, 2 );
24
  }
18
  if( !is_admin() && is_admin_bar_showing() && current_user_can( 'update_plugins' )
19
  ) {
20
  add_action( 'admin_bar_menu', 'quads_add_admin_bar_menu', 1000 );
21
+ global $wp_version;
22
+ if (version_compare( $wp_version, '5.4', '>=') ){
23
+ if( array_key_exists( 'the_content' , $GLOBALS['wp_filter']) ) {
24
+ global $the_content;
25
+ $the_content = true;
26
+ }
27
+ }else {
28
+ add_filter( 'the_content', 'quads_check_the_content_filter' );
29
+ }
30
  add_filter( 'wp_footer', 'quads_check_adblocker', -101 );
31
  add_filter( 'quads-ad-output', 'after_ad_output', 10, 2 );
32
  }
includes/gutenberg/package.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "quick-adsense-reloaded",
3
- "version": "1.8.17",
4
  "scripts": {
5
  "start": "cgb-scripts start",
6
  "build": "cgb-scripts build",
1
  {
2
  "name": "quick-adsense-reloaded",
3
+ "version": "1.8.18",
4
  "scripts": {
5
  "start": "cgb-scripts start",
6
  "build": "cgb-scripts build",
includes/template-functions.php CHANGED
@@ -88,6 +88,21 @@ function quads_change_adsbygoogle_to_amp($content){
88
  $new_node->setAttribute('data-ad-format', $adformat);
89
  $new_node->setAttribute('data-full-width-responsive', $adfullwidth);
90
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  $child_element= $dom->createElement('div');
92
  $child_element->setAttribute('overflow', '');
93
  $new_node->appendChild( $child_element );
88
  $new_node->setAttribute('data-ad-format', $adformat);
89
  $new_node->setAttribute('data-full-width-responsive', $adfullwidth);
90
  }
91
+ $styletag= $node->getAttribute('style');
92
+ $widthreg = "/width:(?<width>\\d+)/";
93
+ $heightreg = "/height:(?<height>\\d+)/";
94
+ preg_match($widthreg, $styletag, $width);
95
+ preg_match($heightreg, $styletag, $height);
96
+ if(isset($width['width'])){
97
+ $new_node->setAttribute('width', $width['width']);
98
+ }else{
99
+ $new_node->setAttribute('width', '100vw');
100
+ }
101
+ if(isset($height['height'])){
102
+ $new_node->setAttribute('height', $height['height']);
103
+ }else{
104
+ $new_node->setAttribute('height', '320');
105
+ }
106
  $child_element= $dom->createElement('div');
107
  $child_element->setAttribute('overflow', '');
108
  $new_node->appendChild( $child_element );
package.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "quick-adsense-reloaded",
3
- "version": "1.8.17",
4
  "devDependencies": {
5
  "grunt": "~0.4.5",
6
  "grunt-contrib-clean": "~0.6.0",
1
  {
2
  "name": "quick-adsense-reloaded",
3
+ "version": "1.8.18",
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: 1.8.17
10
  * Text Domain: quick-adsense-reloaded
11
  * Domain Path: languages
12
  * Credits: WP QUADS - Quick AdSense Reloaded is a fork of Quick AdSense
@@ -36,7 +36,7 @@ if( !defined( 'ABSPATH' ) )
36
 
37
  // Plugin version
38
  if( !defined( 'QUADS_VERSION' ) ) {
39
- define( 'QUADS_VERSION', '1.8.17' );
40
  }
41
 
42
  // 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: 1.8.18
10
  * Text Domain: quick-adsense-reloaded
11
  * Domain Path: languages
12
  * Credits: WP QUADS - Quick AdSense Reloaded is a fork of Quick AdSense
36
 
37
  // Plugin version
38
  if( !defined( 'QUADS_VERSION' ) ) {
39
+ define( 'QUADS_VERSION', '1.8.18' );
40
  }
41
 
42
  // Plugin name
readme.txt CHANGED
@@ -8,9 +8,9 @@ License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Tags: adsense, ads, ad, google adsense, advertising, amp, ad injection, ad inserter, ad manager
10
  Requires at least: 3.6+
11
- Tested up to: 5.3.2
12
  Requires PHP: 5.3
13
- Stable tag: 1.8.17
14
 
15
  Ads & AdSense Plugin is the quickest way to insert Google AdSense & other ads into your website. Google AdSense integration with Google AMP support.
16
 
@@ -127,6 +127,10 @@ Alternative Installation:
127
  3. AdSense Widgets
128
  4. AdSense Options from the post editor
129
 
 
 
 
 
130
 
131
  == Changelog ==
132
  = 1.8.17 =
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Tags: adsense, ads, ad, google adsense, advertising, amp, ad injection, ad inserter, ad manager
10
  Requires at least: 3.6+
11
+ Tested up to: 5.4
12
  Requires PHP: 5.3
13
+ Stable tag: 1.8.18
14
 
15
  Ads & AdSense Plugin is the quickest way to insert Google AdSense & other ads into your website. Google AdSense integration with Google AMP support.
16
 
127
  3. AdSense Widgets
128
  4. AdSense Options from the post editor
129
 
130
+ == Changelog ==
131
+ = 1.8.18 =
132
+ * Fix: The content missing issue in Wordpress 5.4 version.
133
+ * Fix: Fixed amp validation issue.
134
 
135
  == Changelog ==
136
  = 1.8.17 =