AdSense Plugin WP QUADS - Version 2.0.37.2

Version Description

(16th December 2021) = * Fixed: Added Escaping for Duplicate Ads Option #449

Download this release

Release Info

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

Code changes from version 2.0.37.1 to 2.0.37.2

admin/includes/migration-service.php CHANGED
@@ -40,7 +40,7 @@ class QUADS_Ad_Migration {
40
  if(!empty($key)){
41
  $key_array = explode("ad",$key);
42
  if(is_array($key_array)){
43
- $ad_count = (isset($key_array[1]) && !empty($key_array[1]))?$key_array[1]+1:1;
44
  }
45
  }
46
  }
40
  if(!empty($key)){
41
  $key_array = explode("ad",$key);
42
  if(is_array($key_array)){
43
+ $ad_count = (isset($key_array[1]) && !empty($key_array[1]))?$key_array[1]:1;
44
  }
45
  }
46
  }
admin/includes/rest-api-service.php CHANGED
@@ -569,18 +569,18 @@ if($license_info){
569
 
570
  if ( count( $post_metas )!=0 ) {
571
 
572
- $sql_query = "INSERT INTO $wpdb->postmeta ( post_id, meta_key, meta_value ) ";
573
 
574
  foreach ( $post_metas as $post_meta ) {
575
 
576
- $meta_key = $post_meta->meta_key;
577
 
578
  if( $meta_key == '_wp_old_slug' ) continue;
579
 
580
  if($meta_key == 'ad_id'){
581
- $meta_value = addslashes( $new_post_id);
582
  }else{
583
- $meta_value = addslashes( $post_meta->meta_value);
584
  }
585
  $sql_query_sel[]= "SELECT $new_post_id, '$meta_key', '$meta_value'";
586
  }
569
 
570
  if ( count( $post_metas )!=0 ) {
571
 
572
+ $sql_query = $wpdb->prepare( "INSERT INTO $wpdb->postmeta ( post_id, meta_key, meta_value ) ");
573
 
574
  foreach ( $post_metas as $post_meta ) {
575
 
576
+ $meta_key = esc_sql($post_meta->meta_key);
577
 
578
  if( $meta_key == '_wp_old_slug' ) continue;
579
 
580
  if($meta_key == 'ad_id'){
581
+ $meta_value = esc_sql( $new_post_id);
582
  }else{
583
+ $meta_value = esc_sql( $post_meta->meta_value);
584
  }
585
  $sql_query_sel[]= "SELECT $new_post_id, '$meta_key', '$meta_value'";
586
  }
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.37.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.37.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.37.2
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.37.2' );
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.37.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
 
@@ -205,6 +205,9 @@ Alternative Installation:
205
 
206
  == Changelog ==
207
 
 
 
 
208
  = 2.0.37.1 (15th December 2021) =
209
  * Fixed: PHP Fatal error: Uncaught Error: Call to undefined function quads_get_client_ip() #447
210
 
10
  Requires at least: 3.6+
11
  Tested up to: 5.8
12
  Requires PHP: 5.4
13
+ Stable tag: 2.0.37.2
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
 
205
 
206
  == Changelog ==
207
 
208
+ = 2.0.37.2 (16th December 2021) =
209
+ * Fixed: Added Escaping for Duplicate Ads Option #449
210
+
211
  = 2.0.37.1 (15th December 2021) =
212
  * Fixed: PHP Fatal error: Uncaught Error: Call to undefined function quads_get_client_ip() #447
213