AdSense Plugin WP QUADS - Version 2.0.27.1

Version Description

(6th June 2021) = * Fix: Unable to import Advanced Ads shortcode #371 * Fix: After first installation, it goes to Upgrade to pro #380 * Fix: Mistake in page #374

Download this release

Release Info

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

Code changes from version 2.0.27 to 2.0.27.1

admin/includes/rest-api.php CHANGED
@@ -480,6 +480,11 @@ class QUADS_Ad_Setup_Api {
480
  public function importadvance_ads(){
481
 
482
  $placements = Advanced_Ads::get_ad_placements_array();
 
 
 
 
 
483
  foreach ($placements as $placement) {
484
 
485
  $idArray = explode('ad_', $placement['item']);
@@ -491,15 +496,7 @@ class QUADS_Ad_Setup_Api {
491
  $post_meta = get_post_meta($id,'advanced_ads_ad_options');
492
  if(isset($post_meta['0']['type'])){
493
  $advanced_ads_options = get_option('advanced-ads');
494
- global $quads_settings;
495
- $ad_count = 1;
496
- if(isset($quads_settings['ads'])){
497
- foreach($quads_settings['ads'] as $key2 => $value2){
498
- if($key2 === 'ad'.$ad_count){
499
- $ad_count++;
500
- }
501
- }
502
- }
503
  $ads_post = array(
504
  'post_author' => $post['post_author'],
505
  'post_title' => $post['post_title'],
@@ -735,7 +732,7 @@ class QUADS_Ad_Setup_Api {
735
  }
736
  require_once QUADS_PLUGIN_DIR . '/admin/includes/migration-service.php';
737
  $this->migration_service = new QUADS_Ad_Migration();
738
- $this->migration_service->quadsUpdateOldAd('ad'.$ad_count, $advance_ads_meta_key);
739
  $ad_count++;
740
  }
741
  }
480
  public function importadvance_ads(){
481
 
482
  $placements = Advanced_Ads::get_ad_placements_array();
483
+ $get_Advanced_Ads = Advanced_Ads::get_ads();
484
+ foreach ($get_Advanced_Ads as $advanced_Ad) {
485
+ $name = 'shortcode_'.$advanced_Ad->ID;
486
+ $placements[$name] = array('item' => 'ad_'.$advanced_Ad->ID,'advanced_ads'=>true);
487
+ }
488
  foreach ($placements as $placement) {
489
 
490
  $idArray = explode('ad_', $placement['item']);
496
  $post_meta = get_post_meta($id,'advanced_ads_ad_options');
497
  if(isset($post_meta['0']['type'])){
498
  $advanced_ads_options = get_option('advanced-ads');
499
+ $quads_settings = get_option( 'quads_settings' );
 
 
 
 
 
 
 
 
500
  $ads_post = array(
501
  'post_author' => $post['post_author'],
502
  'post_title' => $post['post_title'],
732
  }
733
  require_once QUADS_PLUGIN_DIR . '/admin/includes/migration-service.php';
734
  $this->migration_service = new QUADS_Ad_Migration();
735
+ $this->migration_service->quadsUpdateOldAd($post_id, $advance_ads_meta_key);
736
  $ad_count++;
737
  }
738
  }
includes/admin/add-ons.php CHANGED
@@ -891,7 +891,7 @@ function quads_add_ons_page() {
891
  <a href="https://wpquads.com/checkout?edd_action=add_to_cart&amp;download_id=11&amp;edd_options[price_id]=1">
892
  <h5>PERSONAL</h5>
893
  <span class="d-amt"><sup>$</sup>89</span>
894
- <span class="amt"><sup>$</sup>59</span>
895
  <span class="s-amt">(Save $59)</span>
896
  <span class="bil">Billed Annually</span>
897
  <span class="s">1 Site License</span>
891
  <a href="https://wpquads.com/checkout?edd_action=add_to_cart&amp;download_id=11&amp;edd_options[price_id]=1">
892
  <h5>PERSONAL</h5>
893
  <span class="d-amt"><sup>$</sup>89</span>
894
+ <span class="amt"><sup>$</sup>89</span>
895
  <span class="s-amt">(Save $59)</span>
896
  <span class="bil">Billed Annually</span>
897
  <span class="s">1 Site License</span>
includes/admin/welcome.php CHANGED
@@ -64,12 +64,8 @@ class quads_Welcome {
64
 
65
  $upgrade = get_option( 'quads_version_upgraded_from' );
66
 
67
- // Redirect to settings page if wp quads pro is not installed
68
- if( quads_is_extra() ) { // First time install
69
- wp_safe_redirect( admin_url( 'admin.php?page=quads-settings' ) ); exit;
70
- } else { // Update
71
  wp_safe_redirect( admin_url( 'admin.php?page=quads-addons' ) ); exit;
72
- }
73
  }
74
 
75
  /**
64
 
65
  $upgrade = get_option( 'quads_version_upgraded_from' );
66
 
 
 
 
 
67
  wp_safe_redirect( admin_url( 'admin.php?page=quads-addons' ) ); exit;
68
+
69
  }
70
 
71
  /**
includes/template-functions.php CHANGED
@@ -99,16 +99,19 @@ function quads_load_ads_common($user_position){
99
  }
100
  }
101
  function remove_ads_for_wp_shortcodes() {
102
- $quads_settings = get_option( 'quads_settings' );
103
- if(isset($quads_settings['adsforwp_quads_shortcode']) && $quads_settings['adsforwp_quads_shortcode']){
104
- remove_shortcode( 'adsforwp' );
105
- add_shortcode('adsforwp', 'quads_from_adsforwp_manual_ads',1);
106
- }
107
- if(isset($quads_settings['advance_ads_to_quads']) && $quads_settings['advance_ads_to_quads']){
108
- remove_shortcode( 'the_ad_placement' );
109
- add_shortcode('the_ad_placement', 'quads_from_advance_manual_ads',1);
 
 
 
 
110
  }
111
- }
112
 
113
  //Ad blocker
114
  add_action('wp_head', 'quads_adblocker_detector');
99
  }
100
  }
101
  function remove_ads_for_wp_shortcodes() {
102
+ $quads_settings = get_option( 'quads_settings' );
103
+ if(isset($quads_settings['adsforwp_quads_shortcode']) && $quads_settings['adsforwp_quads_shortcode']){
104
+ remove_shortcode( 'adsforwp' );
105
+ add_shortcode('adsforwp', 'quads_from_adsforwp_manual_ads',1);
106
+ }
107
+ if(isset($quads_settings['advance_ads_to_quads']) && $quads_settings['advance_ads_to_quads']){
108
+ remove_shortcode( 'the_ad_placement' );
109
+ remove_shortcode( 'the_ad' );
110
+ add_shortcode('the_ad_placement', 'quads_from_advance_manual_ads',1);
111
+ add_shortcode( 'the_ad', 'quads_from_advance_manual_ads',1);
112
+
113
+ }
114
  }
 
115
 
116
  //Ad blocker
117
  add_action('wp_head', 'quads_adblocker_detector');
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.27
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.27' );
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.27.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.27.1' );
42
  }
43
 
44
  // 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: ad manager, ads, adsense, amp, banner
10
  Requires at least: 3.6+
11
- Tested up to: 5.7.1
12
  Requires PHP: 5.3
13
- Stable tag: 2.0.27
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
 
@@ -200,7 +200,12 @@ Alternative Installation:
200
 
201
 
202
  == Changelog ==
203
- = 2.0.27 (7th April 2021) =
 
 
 
 
 
204
  * Fix: Fixed Widget option is not working properly bug #342
205
  * Fix: Fixed 404 error on vi.html #351
206
  * Fix: Ads are not showing post category pages #331
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Tags: ad manager, ads, adsense, amp, banner
10
  Requires at least: 3.6+
11
+ Tested up to: 5.7.2
12
  Requires PHP: 5.3
13
+ Stable tag: 2.0.27.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
 
200
 
201
 
202
  == Changelog ==
203
+ = 2.0.27.1 (6th June 2021) =
204
+ * Fix: Unable to import Advanced Ads shortcode #371
205
+ * Fix: After first installation, it goes to Upgrade to pro #380
206
+ * Fix: Mistake in page #374
207
+
208
+ = 2.0.27 (7th May 2021) =
209
  * Fix: Fixed Widget option is not working properly bug #342
210
  * Fix: Fixed 404 error on vi.html #351
211
  * Fix: Ads are not showing post category pages #331