Version Description
- Fix: PHP7 compatibility fixes
- Fix: Check if element wpquads-adblock-notice exists before accessing it
- Fix: Remove deprecated functions
Download this release
Release Info
Developer | ReneHermi |
Plugin | AdSense Plugin WP QUADS |
Version | 1.5.0 |
Comparing to | |
See all releases |
Code changes from version 1.4.9 to 1.5.0
- includes/admin/add-ons.php +0 -24
- includes/admin/tools.php +2 -3
- includes/libraries/browser.php +13 -3
- includes/scripts.php +7 -1
- quick-adsense-reloaded.php +2 -2
- readme.txt +23 -18
includes/admin/add-ons.php
CHANGED
@@ -119,28 +119,4 @@ function quads_add_ons_page() {
|
|
119 |
</div>
|
120 |
<?php
|
121 |
echo ob_get_clean();
|
122 |
-
}
|
123 |
-
|
124 |
-
/**
|
125 |
-
* Add-ons Get Feed
|
126 |
-
*
|
127 |
-
* Gets the add-ons page feed.
|
128 |
-
*
|
129 |
-
* @since 0.9.0
|
130 |
-
* @return void
|
131 |
-
*/
|
132 |
-
function quads_add_ons_get_feed() {
|
133 |
-
if ( false === ( $cache = get_transient( 'quadsshare_add_ons_feed' ) ) ) {
|
134 |
-
$feed = wp_remote_get( 'https://www.quadsshare.net/?feed=addons', array( 'sslverify' => false ) );
|
135 |
-
if ( ! is_wp_error( $feed ) ) {
|
136 |
-
if ( isset( $feed['body'] ) && strlen( $feed['body'] ) > 0 ) {
|
137 |
-
$cache = wp_remote_retrieve_body( $feed );
|
138 |
-
set_transient( 'quadsshare_add_ons_feed', $cache, 3600 );
|
139 |
-
}
|
140 |
-
} else {
|
141 |
-
$cache = '<div class="error"><p>' . __( 'There was an error retrieving the Quick AdSense Reloaded addon list from the server. Please try again later.', 'quick-adsense-reloaded' ) . '
|
142 |
-
<br>Visit instead the Quick AdSense Reloaded Addon Website <a href="https://www.quadsshare.net" class="button-primary" title="Quick AdSense Reloaded Add ons" target="_blank"> Get Add-Ons </a></div>';
|
143 |
-
}
|
144 |
-
}
|
145 |
-
return $cache;
|
146 |
}
|
119 |
</div>
|
120 |
<?php
|
121 |
echo ob_get_clean();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
}
|
includes/admin/tools.php
CHANGED
@@ -155,7 +155,7 @@ function quads_tools_import_export_process_export() {
|
|
155 |
|
156 |
ignore_user_abort( true );
|
157 |
|
158 |
-
if ( ! quads_is_func_disabled( 'set_time_limit' )
|
159 |
set_time_limit( 0 );
|
160 |
|
161 |
nocache_headers();
|
@@ -415,7 +415,6 @@ function quads_tools_sysinfo_get() {
|
|
415 |
|
416 |
// PHP configs... now we're getting to the important stuff
|
417 |
$return .= "\n" . '-- PHP Configuration' . "\n\n";
|
418 |
-
$return .= 'Safe Mode: ' . ( ini_get( 'safe_mode' ) ? 'Enabled' : 'Disabled' . "\n" );
|
419 |
$return .= 'Memory Limit: ' . ini_get( 'memory_limit' ) . "\n";
|
420 |
$return .= 'Upload Max Size: ' . ini_get( 'upload_max_filesize' ) . "\n";
|
421 |
$return .= 'Post Max Size: ' . ini_get( 'post_max_size' ) . "\n";
|
@@ -515,7 +514,7 @@ function quads_import_quick_adsense_process() {
|
|
515 |
|
516 |
ignore_user_abort( true );
|
517 |
|
518 |
-
if ( ! quads_is_func_disabled( 'set_time_limit' )
|
519 |
set_time_limit( 0 );
|
520 |
|
521 |
|
155 |
|
156 |
ignore_user_abort( true );
|
157 |
|
158 |
+
if ( ! quads_is_func_disabled( 'set_time_limit' ) )
|
159 |
set_time_limit( 0 );
|
160 |
|
161 |
nocache_headers();
|
415 |
|
416 |
// PHP configs... now we're getting to the important stuff
|
417 |
$return .= "\n" . '-- PHP Configuration' . "\n\n";
|
|
|
418 |
$return .= 'Memory Limit: ' . ini_get( 'memory_limit' ) . "\n";
|
419 |
$return .= 'Upload Max Size: ' . ini_get( 'upload_max_filesize' ) . "\n";
|
420 |
$return .= 'Post Max Size: ' . ini_get( 'post_max_size' ) . "\n";
|
514 |
|
515 |
ignore_user_abort( true );
|
516 |
|
517 |
+
if ( ! quads_is_func_disabled( 'set_time_limit' ) )
|
518 |
set_time_limit( 0 );
|
519 |
|
520 |
|
includes/libraries/browser.php
CHANGED
@@ -217,15 +217,25 @@
|
|
217 |
|
218 |
public $OPERATING_SYSTEM_UNKNOWN = 'unknown';
|
219 |
|
220 |
-
function Browser($useragent="") {
|
221 |
-
$this->reset();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
if( $useragent != "" ) {
|
223 |
$this->setUserAgent($useragent);
|
224 |
}
|
225 |
else {
|
226 |
$this->determine();
|
227 |
}
|
228 |
-
|
229 |
|
230 |
/**
|
231 |
* Reset all properties
|
217 |
|
218 |
public $OPERATING_SYSTEM_UNKNOWN = 'unknown';
|
219 |
|
220 |
+
// function Browser($useragent="") {
|
221 |
+
// $this->reset();
|
222 |
+
// if( $useragent != "" ) {
|
223 |
+
// $this->setUserAgent($useragent);
|
224 |
+
// }
|
225 |
+
// else {
|
226 |
+
// $this->determine();
|
227 |
+
// }
|
228 |
+
// }
|
229 |
+
|
230 |
+
function __construct($useragent="") {
|
231 |
+
$this->reset();
|
232 |
if( $useragent != "" ) {
|
233 |
$this->setUserAgent($useragent);
|
234 |
}
|
235 |
else {
|
236 |
$this->determine();
|
237 |
}
|
238 |
+
}
|
239 |
|
240 |
/**
|
241 |
* Reset all properties
|
includes/scripts.php
CHANGED
@@ -20,14 +20,20 @@ add_action('admin_print_footer_scripts', 'quads_check_ad_blocker');
|
|
20 |
|
21 |
/**
|
22 |
* Create ad blocker admin script
|
|
|
|
|
23 |
*/
|
24 |
function quads_check_ad_blocker(){
|
|
|
|
|
|
|
25 |
?>
|
26 |
<script type="text/javascript">
|
27 |
window.onload = function(){
|
28 |
if (typeof wpquads_adblocker_check === 'undefined' || false === wpquads_adblocker_check) {
|
|
|
29 |
document.getElementById('wpquads-adblock-notice').style.display = 'block';
|
30 |
-
|
31 |
}
|
32 |
}
|
33 |
</script>
|
20 |
|
21 |
/**
|
22 |
* Create ad blocker admin script
|
23 |
+
*
|
24 |
+
* @return mixed boolean | string
|
25 |
*/
|
26 |
function quads_check_ad_blocker(){
|
27 |
+
if (!quads_is_admin_page()){
|
28 |
+
return false;
|
29 |
+
}
|
30 |
?>
|
31 |
<script type="text/javascript">
|
32 |
window.onload = function(){
|
33 |
if (typeof wpquads_adblocker_check === 'undefined' || false === wpquads_adblocker_check) {
|
34 |
+
if (document.getElementById('wpquads-adblock-notice')){
|
35 |
document.getElementById('wpquads-adblock-notice').style.display = 'block';
|
36 |
+
}
|
37 |
}
|
38 |
}
|
39 |
</script>
|
quick-adsense-reloaded.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Description: Insert Google AdSense or any Ads code into your website. A fork of Quick AdSense
|
7 |
* Author: Rene Hermenau, WP-Staging
|
8 |
* Author URI: https://wordpress.org/plugins/quick-adsense-reloaded/
|
9 |
-
* Version: 1.
|
10 |
* Text Domain: quick-adsense-reloaded
|
11 |
* Domain Path: languages
|
12 |
* Credits: WP QUADS - Quick AdSense Reloaded is a fork of Quick AdSense
|
@@ -35,7 +35,7 @@ if( !defined( 'ABSPATH' ) )
|
|
35 |
|
36 |
// Plugin version
|
37 |
if( !defined( 'QUADS_VERSION' ) ) {
|
38 |
-
define( 'QUADS_VERSION', '1.
|
39 |
}
|
40 |
|
41 |
// Plugin name
|
6 |
* Description: Insert Google AdSense or any Ads code into your website. A fork of Quick AdSense
|
7 |
* Author: Rene Hermenau, WP-Staging
|
8 |
* Author URI: https://wordpress.org/plugins/quick-adsense-reloaded/
|
9 |
+
* Version: 1.5.0
|
10 |
* Text Domain: quick-adsense-reloaded
|
11 |
* Domain Path: languages
|
12 |
* Credits: WP QUADS - Quick AdSense Reloaded is a fork of Quick AdSense
|
35 |
|
36 |
// Plugin version
|
37 |
if( !defined( 'QUADS_VERSION' ) ) {
|
38 |
+
define( 'QUADS_VERSION', '1.5.0' );
|
39 |
}
|
40 |
|
41 |
// Plugin name
|
readme.txt
CHANGED
@@ -9,29 +9,29 @@ 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: 4.7.3
|
12 |
-
Stable tag: 1.
|
13 |
|
14 |
Quick Adsense Reloaded! Quickest way to insert Google AdSense & other ads into your website. Google AdSense integration with Google AMP support
|
15 |
|
16 |
== Description ==
|
17 |
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
|
36 |
= Why a Quick AdSense fork? =
|
37 |
|
@@ -129,6 +129,11 @@ Alternative Installation:
|
|
129 |
|
130 |
== Changelog ==
|
131 |
|
|
|
|
|
|
|
|
|
|
|
132 |
= 1.4.9 =
|
133 |
* Fix: Adblock plugin is breaking wp quads admin settings. Create a admin notice to deactivate ad blocker browser extension
|
134 |
* Tweak: Remove 'Get WP QUADS Pro' button if wp quads pro is already installed
|
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: 4.7.3
|
12 |
+
Stable tag: 1.5.0
|
13 |
|
14 |
Quick Adsense Reloaded! Quickest way to insert Google AdSense & other ads into your website. Google AdSense integration with Google AMP support
|
15 |
|
16 |
== Description ==
|
17 |
|
18 |
+
#### WPQUADS - Quick AdSense Reloaded
|
19 |
+
This free Google AdSense inserting plugin is an improvement of the successfull but discontinued plugin Quick AdSense which is used on more than 100.000 websites.
|
20 |
+
WP QUADS is coded well with no overhead and is used on huge websites with millions of monthly page impressions.
|
21 |
+
<br />
|
22 |
+
[See all features](https://wpquads.com/)
|
23 |
+
<br />
|
24 |
+
* AMP support! Add AMP ads automatically to your site (WP QUADS PRO needed)<br />
|
25 |
+
* Use mobile optimized and responsive AdSense ads<br />
|
26 |
+
* Disable AdSense ads on phone, tablet or desktop devices<br />
|
27 |
+
* Define AdSense sizes for different devices<br />
|
28 |
+
|
29 |
+
AMP feature requires [Automattic AMP plugin](http://wpquads.com/?utm_source=wp_org&utm_medium=plugin_page&utm_term=check_out_wp_quads&utm_campaign=wpquads) installed <br />
|
30 |
+
Get WP QUADS PRO: [wpquads.com](http://wpquads.com/?utm_source=wp_org&utm_medium=plugin_page&utm_term=check_out_wp_quads&utm_campaign=wpquads) <br />
|
31 |
+
|
32 |
+
This AdSense plugin is rewritten from scratch with a solid code
|
33 |
+
base and will be maintained and updated to be compatible with all future WordPress versions<br />
|
34 |
+
Found a issue? Open a ticket in the [support forum](https://wordpress.org/support/plugin/quick-adsense-reloaded/ "support forum").
|
35 |
|
36 |
= Why a Quick AdSense fork? =
|
37 |
|
129 |
|
130 |
== Changelog ==
|
131 |
|
132 |
+
= 1.5.0 =
|
133 |
+
* Fix: PHP7 compatibility fixes
|
134 |
+
* Fix: Check if element wpquads-adblock-notice exists before accessing it
|
135 |
+
* Fix: Remove deprecated functions
|
136 |
+
|
137 |
= 1.4.9 =
|
138 |
* Fix: Adblock plugin is breaking wp quads admin settings. Create a admin notice to deactivate ad blocker browser extension
|
139 |
* Tweak: Remove 'Get WP QUADS Pro' button if wp quads pro is already installed
|