Version Description
(19th April 2021) = * Fix: Fatal error and warning (using php version 8) #348
Download this release
Release Info
| Developer | wpquads |
| Plugin | |
| Version | 2.0.25.3 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0.25.2 to 2.0.25.3
admin/includes/migration-service.php
CHANGED
|
@@ -64,7 +64,7 @@ class QUADS_Ad_Migration {
|
|
| 64 |
$quads_ads = $api_service->getAdDataByParam('quads-ads');
|
| 65 |
$duplicate_array =array();
|
| 66 |
|
| 67 |
-
if(isset($quads_ads['posts_data'])) {
|
| 68 |
foreach ($quads_options['ads'] as $key1 => $value1) {
|
| 69 |
foreach ($quads_ads['posts_data'] as $key => $value) {
|
| 70 |
$ads = $value['post_meta'];
|
|
@@ -136,11 +136,13 @@ class QUADS_Ad_Migration {
|
|
| 136 |
}
|
| 137 |
}
|
| 138 |
}
|
|
|
|
| 139 |
foreach ( $quads_settings['ads'] as $key => $value ) {
|
| 140 |
if( ! in_array( $key, $check_array )){
|
| 141 |
unset($quads_settings['ads'][$key]);
|
| 142 |
}
|
| 143 |
}
|
|
|
|
| 144 |
$quads_options =$quads_settings;
|
| 145 |
update_option('quads_settings', $quads_settings);
|
| 146 |
}
|
| 64 |
$quads_ads = $api_service->getAdDataByParam('quads-ads');
|
| 65 |
$duplicate_array =array();
|
| 66 |
|
| 67 |
+
if(isset($quads_ads['posts_data']) && isset($quads_options['ads'])) {
|
| 68 |
foreach ($quads_options['ads'] as $key1 => $value1) {
|
| 69 |
foreach ($quads_ads['posts_data'] as $key => $value) {
|
| 70 |
$ads = $value['post_meta'];
|
| 136 |
}
|
| 137 |
}
|
| 138 |
}
|
| 139 |
+
if(isset($quads_settings['ads'])){
|
| 140 |
foreach ( $quads_settings['ads'] as $key => $value ) {
|
| 141 |
if( ! in_array( $key, $check_array )){
|
| 142 |
unset($quads_settings['ads'][$key]);
|
| 143 |
}
|
| 144 |
}
|
| 145 |
+
}
|
| 146 |
$quads_options =$quads_settings;
|
| 147 |
update_option('quads_settings', $quads_settings);
|
| 148 |
}
|
includes/admin/settings/register-settings.php
CHANGED
|
@@ -1522,8 +1522,8 @@ function quads_log_permissions() {
|
|
| 1522 |
*/
|
| 1523 |
function quads_get_ads() {
|
| 1524 |
global $quads_options;
|
| 1525 |
-
|
| 1526 |
-
if (
|
| 1527 |
$ads = array(
|
| 1528 |
0 => __( 'Random Ads', 'quick-adsense-reloaded' ),
|
| 1529 |
1 => isset( $quads_options['ads']['ad1']['label'] ) ? $quads_options['ads']['ad1']['label'] : 'ad1',
|
| 1522 |
*/
|
| 1523 |
function quads_get_ads() {
|
| 1524 |
global $quads_options;
|
| 1525 |
+
$quads_options['ads'] = (isset($quads_options['ads']) && count( $quads_options['ads'] ) !== 0 )?(array)$quads_options['ads']: array();
|
| 1526 |
+
if (empty($quads_options['ads'])) {
|
| 1527 |
$ads = array(
|
| 1528 |
0 => __( 'Random Ads', 'quick-adsense-reloaded' ),
|
| 1529 |
1 => isset( $quads_options['ads']['ad1']['label'] ) ? $quads_options['ads']['ad1']['label'] : 'ad1',
|
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.25.
|
| 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.25.
|
| 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.25.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.25.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.7
|
| 12 |
Requires PHP: 5.3
|
| 13 |
-
Stable tag: 2.0.25.
|
| 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 |
|
|
@@ -196,6 +196,9 @@ Alternative Installation:
|
|
| 196 |
|
| 197 |
|
| 198 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
| 199 |
= 2.0.25.2 (14th April 2021) =
|
| 200 |
* Fix: Fixed warning msg after update 2.0.25.1 #347
|
| 201 |
|
| 10 |
Requires at least: 3.6+
|
| 11 |
Tested up to: 5.7
|
| 12 |
Requires PHP: 5.3
|
| 13 |
+
Stable tag: 2.0.25.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 |
|
| 196 |
|
| 197 |
|
| 198 |
== Changelog ==
|
| 199 |
+
= 2.0.25.3 (19th April 2021) =
|
| 200 |
+
* Fix: Fatal error and warning (using php version 8) #348
|
| 201 |
+
|
| 202 |
= 2.0.25.2 (14th April 2021) =
|
| 203 |
* Fix: Fixed warning msg after update 2.0.25.1 #347
|
| 204 |
|
