Version Description
- Fix: Adblock plugin is breaking wp quads admin settings. Create a admin notice to deactivate ad blocker browser extension
- Tweak: Remove 'Get WP QUADS Pro' button if wp quads pro is already installed
Download this release
Release Info
Developer | ReneHermi |
Plugin | AdSense Plugin WP QUADS |
Version | 1.4.9 |
Comparing to | |
See all releases |
Code changes from version 1.4.8 to 1.4.9
- includes/admin/add-ons.php +68 -1
- includes/admin/admin-notices.php +4 -0
- includes/admin/admin-pages.php +27 -8
- includes/admin/welcome.php +10 -2
- includes/scripts.php +19 -29
- quick-adsense-reloaded.php +2 -2
- readme.txt +5 -1
includes/admin/add-ons.php
CHANGED
@@ -12,6 +12,73 @@
|
|
12 |
// Exit if accessed directly
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
/**
|
16 |
* Add-ons
|
17 |
*
|
@@ -30,7 +97,7 @@ function quads_add_ons_page() {
|
|
30 |
</h2>
|
31 |
<h2 style="display:none;"><?php _e( 'Mobile and Responsive AdSense Support ', 'quick-adsense-reloaded' ); ?></h2>
|
32 |
<li><strong>Responsive Ads</strong> - <?php _e('individual AdSense sizes for Desktop, Phone and Tablet devices.','quick-adsense-reloaded' ); ?></li>
|
33 |
-
<li><strong>Visibility
|
34 |
<li><strong>Automatic Mode</strong> - <?php _e('let the plugin detect optimal ad size on all devices.', 'quick-adsense-reloaded' ); ?></li>
|
35 |
<li><strong>High Performance</strong> - <?php _e('this plugin keeps the speed of your site', 'quick-adsense-reloaded' ); ?></li>
|
36 |
<a href="http://wpquads.com/?utm_source=wpquads&utm_medium=addon_page&utm_term=click-quads-pro&utm_campaign=wpquads" target="_blank" class="quads-button green">Buy WP QUADS Pro</a>
|
12 |
// Exit if accessed directly
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
14 |
|
15 |
+
add_action('admin_head', 'quads_admin_inline_css');
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Create admin inline css to bypass adblock plugin which is blocking wp quads css ressources
|
19 |
+
*/
|
20 |
+
function quads_admin_inline_css() {
|
21 |
+
if (!quads_is_addon_page()){
|
22 |
+
return false;
|
23 |
+
}
|
24 |
+
echo '<style>
|
25 |
+
.quads-button.green {
|
26 |
+
display: inline-block;
|
27 |
+
background-color: #83c11f;
|
28 |
+
padding: 10px;
|
29 |
+
min-width: 170px;
|
30 |
+
color: white;
|
31 |
+
font-size: 16px;
|
32 |
+
text-decoration: none;
|
33 |
+
text-align: center;
|
34 |
+
margin-top: 20px;
|
35 |
+
}
|
36 |
+
#quads-add-ons li {
|
37 |
+
font-size: 18px;
|
38 |
+
line-height: 29px;
|
39 |
+
position: relative;
|
40 |
+
padding-left: 23px;
|
41 |
+
list-style: none!important;
|
42 |
+
}
|
43 |
+
.quads-heading-pro {
|
44 |
+
color: #83c11f;
|
45 |
+
font-weight: bold;
|
46 |
+
}
|
47 |
+
.quads-h2 {
|
48 |
+
margin-top: 0px;
|
49 |
+
margin-bottom: 1.2rem;
|
50 |
+
font-size: 30px;
|
51 |
+
line-height: 2.5rem;
|
52 |
+
}
|
53 |
+
#quads-add-ons li:before {
|
54 |
+
width: 1em;
|
55 |
+
height: 100%;
|
56 |
+
background: url(data:image/svg+xml;charset=utf8,%3Csvg%20width%3D%221792%22%20height%3D%221792%22%20viewBox%3D%220%200%201792%201792%22%20xmlns%3D%22http%3A%2F%2Fwww%2Ew3%2Eorg%2F2000%2Fsvg%22%3E%3Cpath%20fill%3D%22%2377B227%22%20d%3D%22M1671%20566q0%2040%2D28%2068l%2D724%20724%2D136%20136q%2D28%2028%2D68%2028t%2D68%2D28l%2D136%2D136%2D362%2D362q%2D28%2D28%2D28%2D68t28%2D68l136%2D136q28%2D28%2068%2D28t68%2028l294%20295%20656%2D657q28%2D28%2068%2D28t68%2028l136%20136q28%2028%2028%2068z%22%2F%3E%3C%2Fsvg%3E) left .4em no-repeat;
|
57 |
+
background-size: contain;
|
58 |
+
content: "";
|
59 |
+
position: absolute;
|
60 |
+
top: 0;
|
61 |
+
left: 0;
|
62 |
+
color: #77b227;
|
63 |
+
}
|
64 |
+
.quads-h1 {
|
65 |
+
font-size: 2.75em;
|
66 |
+
margin-bottom: 1.35rem;
|
67 |
+
font-size: 2.5em;
|
68 |
+
line-height: 3.68rem;
|
69 |
+
letter-spacing: normal;
|
70 |
+
}
|
71 |
+
#quads-add-ons h2 {
|
72 |
+
margin: 0 0 15px;
|
73 |
+
}
|
74 |
+
#quads-add-ons .quads-footer {
|
75 |
+
clear: both;
|
76 |
+
margin-top: 20px;
|
77 |
+
font-style: italic;
|
78 |
+
}
|
79 |
+
</style>';
|
80 |
+
}
|
81 |
+
|
82 |
/**
|
83 |
* Add-ons
|
84 |
*
|
97 |
</h2>
|
98 |
<h2 style="display:none;"><?php _e( 'Mobile and Responsive AdSense Support ', 'quick-adsense-reloaded' ); ?></h2>
|
99 |
<li><strong>Responsive Ads</strong> - <?php _e('individual AdSense sizes for Desktop, Phone and Tablet devices.','quick-adsense-reloaded' ); ?></li>
|
100 |
+
<li><strong>Visibility Conditions</strong> - <?php _e('decide if AdSense is visible on mobile, tablet or desktop', 'quick-adsense-reloaded' ); ?></li>
|
101 |
<li><strong>Automatic Mode</strong> - <?php _e('let the plugin detect optimal ad size on all devices.', 'quick-adsense-reloaded' ); ?></li>
|
102 |
<li><strong>High Performance</strong> - <?php _e('this plugin keeps the speed of your site', 'quick-adsense-reloaded' ); ?></li>
|
103 |
<a href="http://wpquads.com/?utm_source=wpquads&utm_medium=addon_page&utm_term=click-quads-pro&utm_campaign=wpquads" target="_blank" class="quads-button green">Buy WP QUADS Pro</a>
|
includes/admin/admin-notices.php
CHANGED
@@ -30,6 +30,10 @@ function quads_admin_messages() {
|
|
30 |
|
31 |
quads_update_notice();
|
32 |
|
|
|
|
|
|
|
|
|
33 |
if( !quads_is_any_ad_activated() && quads_is_admin_page() ) {
|
34 |
echo '<div class="notice notice-warning">' . sprintf( __( '<strong>No ads are activated!</strong> You need to assign at least 1 ad to an ad spot. Fix this in <a href="%s">General Settings</a>! Alternatively you need to use a shortcode in your posts or no ads are shown at all.', 'quick-adsense-reloaded' ), admin_url() . 'admin.php?page=quads-settings#quads_settingsgeneral_header' ) . '</div>';
|
35 |
}
|
30 |
|
31 |
quads_update_notice();
|
32 |
|
33 |
+
if( quads_is_admin_page() ) {
|
34 |
+
echo '<div class="notice notice-error" id="wpquads-adblock-notice" style="display:none;">' . sprintf( __( '<strong><p>Your ad blocker browser extension is removing WP QUADS ressources and is breaking this settings screen! Deactivate adblock for this website and you are good! WP QUADS is used on 40.000 websites and is into focus of the big adblocking companies. That\'s the downside of our success but nothing you need to worry about. </strong></p>', 'quick-adsense-reloaded' ), admin_url() . 'admin.php?page=quads-settings#quads_settingsgeneral_header' ) . '</div>';
|
35 |
+
}
|
36 |
+
|
37 |
if( !quads_is_any_ad_activated() && quads_is_admin_page() ) {
|
38 |
echo '<div class="notice notice-warning">' . sprintf( __( '<strong>No ads are activated!</strong> You need to assign at least 1 ad to an ad spot. Fix this in <a href="%s">General Settings</a>! Alternatively you need to use a shortcode in your posts or no ads are shown at all.', 'quick-adsense-reloaded' ), admin_url() . 'admin.php?page=quads-settings#quads_settingsgeneral_header' ) . '</div>';
|
39 |
}
|
includes/admin/admin-pages.php
CHANGED
@@ -33,10 +33,11 @@ function quads_add_options_link() {
|
|
33 |
$wpquads_logo ="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cD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Quick AdSense Reloaded Settings', $label, 'manage_options', 'quads-settings', 'quads_options_page', 'data:image/svg+xml;base64,' . $wpquads_logo );
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
40 |
}
|
41 |
}
|
42 |
add_action( 'admin_menu', 'quads_add_options_link', 10 );
|
@@ -56,11 +57,29 @@ function quads_is_admin_page() {
|
|
56 |
return false;
|
57 |
}
|
58 |
|
59 |
-
global $quads_parent_page, $pagenow, $typenow, $quads_settings_page, $quads_add_ons_page, $quads_tools_page;
|
60 |
|
61 |
-
if ( 'quads-settings' == $currentpage || 'quads-addons' == $currentpage || 'quads-tools' == $currentpage) {
|
|
|
62 |
return true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
}
|
64 |
-
|
65 |
-
|
|
|
|
|
66 |
}
|
33 |
$wpquads_logo ="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9IjYxMS42OHB4IiBoZWlnaHQ9IjU0NXB4IiB2aWV3Qm94PSIwIDAgNjExLjY4IDU0NSIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgNjExLjY4IDU0NSIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQoJIDxzdHlsZT4uc3R5bGUwe2ZpbGw6I2ZmZjt9PC9zdHlsZT4NCjxnIGlkPSJFYmVuZV8wX3hBMF9JbWFnZV8xXyI+DQo8L2c+DQo8ZyBpZD0iV1BRVUFEUyI+DQoJPGc+DQoJCTxwYXRoIGNsYXNzPSJzdHlsZTAiIGQ9Ik0yNS43MDksNTM1LjQyTDMuMzIsNDUxLjA0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4TVRFeE1URXhNVEV4TVRFeE1URXhNVEV4TVRFeE1URXhNVEV4TVRFeE1URXhNVEV4TVRFeE1URXhNVEV4Ck1URXhNVEV4TVRFeE1URXhNVEV4TVRFeE1URXhNVEV4TVRFeE1URXhNVEV4TVRFeE1URXhNVEV4TVRFeE1URXhNVEV4TVRFeE1URXgKTVRFeE1URXhNVEV4TVRFeE1URXhNVEV4TVRFeE1URXhNVEV4TVRFeE1URXhNVEV4TVRFeE1URXhNVEV4TVRFeE1URXhNVEV4TVRFeApNVEV4TVRFeE1URXhNVEV4TVRFeE1URXhNVEV4TVRFeE1URXhNVEV4TVRFeE1URXhNVEV4TVRFeE1URXhNVEV4TVRFeE1URXhNVEV4Ck1URXhNVEV4TVRFeE1URXhNVEV4TVRHeE95dkFBRTYvNlBYS29tdGZBQUFBQUVsRlRrU3VRbUNDIiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAxIDUzNiAwKSI+DQoJPC9pbWFnZT4NCjwvZz4NCjwvc3ZnPg0K
|
34 |
";
|
35 |
$quads_parent_page = add_menu_page( 'Quick AdSense Reloaded Settings', $label, 'manage_options', 'quads-settings', 'quads_options_page', 'data:image/svg+xml;base64,' . $wpquads_logo );
|
36 |
+
$quads_settings_page = add_submenu_page( 'quads-settings', __( 'Ad Settings', 'quick-adsense-reloaded' ), 'Ad Settings', 'manage_options', 'quads-settings', 'quads_options_page' );
|
37 |
+
|
38 |
+
if (!quads_is_advanced()){
|
39 |
+
$quads_add_ons_page = add_submenu_page( 'quads-settings', __( 'Get Add-On', 'quick-adsense-reloaded' ), 'Get WP QUADS PRO', 'manage_options', 'quads-addons', 'quads_add_ons_page' );
|
40 |
+
}
|
41 |
}
|
42 |
}
|
43 |
add_action( 'admin_menu', 'quads_add_options_link', 10 );
|
57 |
return false;
|
58 |
}
|
59 |
|
60 |
+
//global $quads_parent_page, $pagenow, $typenow, $quads_settings_page, $quads_add_ons_page, $quads_tools_page;
|
61 |
|
62 |
+
//if ( 'quads-settings' == $currentpage || 'quads-addons' == $currentpage || 'quads-tools' == $currentpage) {
|
63 |
+
if ( 'quads-settings' == $currentpage ) {
|
64 |
return true;
|
65 |
+
}
|
66 |
+
}
|
67 |
+
/**
|
68 |
+
* Determines whether the current admin page is an QUADS add-on page.
|
69 |
+
*
|
70 |
+
* Only works after the `wp_loaded` hook, & most effective
|
71 |
+
* starting on `admin_menu` hook.
|
72 |
+
*
|
73 |
+
* @since 1.4.9
|
74 |
+
* @return bool True if QUADS admin page.
|
75 |
+
*/
|
76 |
+
function quads_is_addon_page() {
|
77 |
+
$currentpage = isset($_GET['page']) ? $_GET['page'] : '';
|
78 |
+
if ( ! is_admin() || ! did_action( 'wp_loaded' ) ) {
|
79 |
+
return false;
|
80 |
}
|
81 |
+
|
82 |
+
if ( 'quads-addons' == $currentpage ) {
|
83 |
+
return true;
|
84 |
+
}
|
85 |
}
|
includes/admin/welcome.php
CHANGED
@@ -61,9 +61,17 @@ class quads_Welcome {
|
|
61 |
|
62 |
$upgrade = get_option( 'quads_version_upgraded_from' );
|
63 |
|
|
|
|
|
64 |
//@since 2.0.3
|
65 |
-
if( ! $upgrade ) { // First time install
|
66 |
-
wp_safe_redirect( admin_url( 'admin.php?page=quads-addons' ) ); exit;
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
} else { // Update
|
68 |
wp_safe_redirect( admin_url( 'admin.php?page=quads-addons' ) ); exit;
|
69 |
}
|
61 |
|
62 |
$upgrade = get_option( 'quads_version_upgraded_from' );
|
63 |
|
64 |
+
|
65 |
+
|
66 |
//@since 2.0.3
|
67 |
+
// if( ! $upgrade ) { // First time install
|
68 |
+
// wp_safe_redirect( admin_url( 'admin.php?page=quads-addons' ) ); exit;
|
69 |
+
// } else { // Update
|
70 |
+
// wp_safe_redirect( admin_url( 'admin.php?page=quads-addons' ) ); exit;
|
71 |
+
// }
|
72 |
+
// Redirect to settings page if wp quads pro is not installed
|
73 |
+
if( quads_is_advanced() ) { // First time install
|
74 |
+
wp_safe_redirect( admin_url( 'admin.php?page=quads-settings' ) ); exit;
|
75 |
} else { // Update
|
76 |
wp_safe_redirect( admin_url( 'admin.php?page=quads-addons' ) ); exit;
|
77 |
}
|
includes/scripts.php
CHANGED
@@ -16,6 +16,23 @@ add_action( 'wp_enqueue_scripts', 'quads_register_styles', 10 );
|
|
16 |
add_action( 'wp_print_styles', 'quads_inline_styles', 9999 );
|
17 |
add_action( 'admin_enqueue_scripts', 'quads_load_admin_scripts', 100 );
|
18 |
add_action( 'admin_enqueue_scripts', 'quads_load_plugins_admin_scripts', 100 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
/**
|
21 |
* Load Admin Scripts
|
@@ -44,6 +61,7 @@ function quads_load_admin_scripts( $hook ) {
|
|
44 |
// }
|
45 |
|
46 |
// These have to be global
|
|
|
47 |
wp_enqueue_script( 'quads-admin-scripts', $js_dir . 'quads-admin' . $suffix . '.js', array('jquery'), QUADS_VERSION, false );
|
48 |
wp_enqueue_script( 'jquery-chosen', $js_dir . 'chosen.jquery' . $suffix . '.js', array('jquery'), QUADS_VERSION, false );
|
49 |
wp_enqueue_script( 'jquery-form' );
|
@@ -200,35 +218,7 @@ function quads_ads_head_script() {
|
|
200 |
<?php } ?>
|
201 |
edButtons[edButtons.length]=new edButton("no_ads","NoAds","\n<!--NoAds-->\n","","",-1);
|
202 |
edaddID[edaddID.length] = "no_ads";
|
203 |
-
edaddNm[edaddNm.length] = "NoAds";
|
204 |
-
<?php //if( !isset( $quads_options['quicktags']['QckOffs'] ) ){ ?>
|
205 |
-
//edButtons[edButtons.length]=new edButton("no_ads","NoAds","\n<!--NoAds-->\n","","",-1);
|
206 |
-
//edaddID[edaddID.length] = "no_ads";
|
207 |
-
//edaddNm[edaddNm.length] = "NoAds";
|
208 |
-
//edButtons[edButtons.length]=new edButton("off_def","OffDef","\n<!--OffDef-->\n","","",-1);
|
209 |
-
//edaddID[edaddID.length] = "off_def";
|
210 |
-
//edaddNm[edaddNm.length] = "OffDef";
|
211 |
-
//edButtons[edButtons.length]=new edButton("off_wid","OffWidget","\n<!--OffWidget-->\n","","",-1);
|
212 |
-
//edaddID[edaddID.length] = "off_wid";
|
213 |
-
//edaddNm[edaddNm.length] = "OffWidget";
|
214 |
-
<?php //} ?>
|
215 |
-
<?php //if( !isset( $quads_options['quicktags']['QckOfPs'] ) ){ ?>
|
216 |
-
//edButtons[edButtons.length]=new edButton("off_bgn","OffBegin","\n<!--OffBegin-->\n","","",-1);
|
217 |
-
//edaddID[edaddID.length] = "off_bgn";
|
218 |
-
//edaddNm[edaddNm.length] = "OffBegin";
|
219 |
-
//edButtons[edButtons.length]=new edButton("off_mid","OffMiddle","\n<!--OffMiddle-->\n","","",-1);
|
220 |
-
//edaddID[edaddID.length] = "off_mid";
|
221 |
-
//edaddNm[edaddNm.length] = "OffMiddle";
|
222 |
-
//edButtons[edButtons.length]=new edButton("off_end","OffEnd","\n<!--OffEnd-->\n","","",-1);
|
223 |
-
//edaddID[edaddID.length] = "off_end";
|
224 |
-
//edaddNm[edaddNm.length] = "OffEnd";
|
225 |
-
//edButtons[edButtons.length]=new edButton("off_more","OffAfMore","\n<!--OffAfMore-->\n","","",-1);
|
226 |
-
//edaddID[edaddID.length] = "off_more";
|
227 |
-
//edaddNm[edaddNm.length] = "OffAfMore";
|
228 |
-
//edButtons[edButtons.length]=new edButton("off_last","OffBfLastPara","\n<!--OffBfLastPara-->\n","","",-1);
|
229 |
-
//edaddID[edaddID.length] = "off_last";
|
230 |
-
//edaddNm[edaddNm.length] = "OffBfLastPara";
|
231 |
-
<?php //} ?>
|
232 |
};
|
233 |
(function(){
|
234 |
if(typeof(edButtons)!='undefined' && typeof(jQuery)!='undefined' && wpvcomp){
|
16 |
add_action( 'wp_print_styles', 'quads_inline_styles', 9999 );
|
17 |
add_action( 'admin_enqueue_scripts', 'quads_load_admin_scripts', 100 );
|
18 |
add_action( 'admin_enqueue_scripts', 'quads_load_plugins_admin_scripts', 100 );
|
19 |
+
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 |
+
console.log('ad blocker active');
|
31 |
+
}
|
32 |
+
}
|
33 |
+
</script>
|
34 |
+
<?php
|
35 |
+
}
|
36 |
|
37 |
/**
|
38 |
* Load Admin Scripts
|
61 |
// }
|
62 |
|
63 |
// These have to be global
|
64 |
+
wp_enqueue_script( 'quads-admin-ads', $js_dir . 'ads.js', array('jquery'), QUADS_VERSION, false );
|
65 |
wp_enqueue_script( 'quads-admin-scripts', $js_dir . 'quads-admin' . $suffix . '.js', array('jquery'), QUADS_VERSION, false );
|
66 |
wp_enqueue_script( 'jquery-chosen', $js_dir . 'chosen.jquery' . $suffix . '.js', array('jquery'), QUADS_VERSION, false );
|
67 |
wp_enqueue_script( 'jquery-form' );
|
218 |
<?php } ?>
|
219 |
edButtons[edButtons.length]=new edButton("no_ads","NoAds","\n<!--NoAds-->\n","","",-1);
|
220 |
edaddID[edaddID.length] = "no_ads";
|
221 |
+
edaddNm[edaddNm.length] = "NoAds";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
};
|
223 |
(function(){
|
224 |
if(typeof(edButtons)!='undefined' && typeof(jQuery)!='undefined' && wpvcomp){
|
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.4.
|
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.4.
|
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.4.9
|
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.4.9' );
|
39 |
}
|
40 |
|
41 |
// Plugin name
|
readme.txt
CHANGED
@@ -9,7 +9,7 @@ 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.4.
|
13 |
|
14 |
Quick Adsense Reloaded! Quickest way to insert Google AdSense & other ads into your website. Google AdSense integration with Google AMP support
|
15 |
|
@@ -129,6 +129,10 @@ Alternative Installation:
|
|
129 |
|
130 |
== Changelog ==
|
131 |
|
|
|
|
|
|
|
|
|
132 |
= 1.4.8 =
|
133 |
* New: Ability to rename adsense ads to better identify them
|
134 |
* New: Allow unlimited number of adsense ads on a single page
|
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.4.9
|
13 |
|
14 |
Quick Adsense Reloaded! Quickest way to insert Google AdSense & other ads into your website. Google AdSense integration with Google AMP support
|
15 |
|
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
|
135 |
+
|
136 |
= 1.4.8 =
|
137 |
* New: Ability to rename adsense ads to better identify them
|
138 |
* New: Allow unlimited number of adsense ads on a single page
|