Version Description
- fix a warning that appears when wp admin bar is missing.
Download this release
Release Info
Developer | webzunft |
Plugin | Advanced Ads |
Version | 1.7.23 |
Comparing to | |
See all releases |
Code changes from version 1.7.22 to 1.7.23
- advanced-ads.php +2 -2
- classes/ad_placements.php +15 -13
- readme.txt +5 -1
advanced-ads.php
CHANGED
@@ -6,13 +6,13 @@
|
|
6 |
* @author Thomas Maier <thomas.maier@webgilde.com>
|
7 |
* @license GPL-2.0+
|
8 |
* @link http://webgilde.com
|
9 |
-
* @copyright 2013-
|
10 |
*
|
11 |
* @wordpress-plugin
|
12 |
* Plugin Name: Advanced Ads
|
13 |
* Plugin URI: https://wpadvancedads.com
|
14 |
* Description: Manage and optimize your ads in WordPress
|
15 |
-
* Version: 1.7.
|
16 |
* Author: Thomas Maier
|
17 |
* Author URI: http://webgilde.com
|
18 |
* Text Domain: advanced-ads
|
6 |
* @author Thomas Maier <thomas.maier@webgilde.com>
|
7 |
* @license GPL-2.0+
|
8 |
* @link http://webgilde.com
|
9 |
+
* @copyright 2013-2017 Thomas Maier, webgilde GmbH
|
10 |
*
|
11 |
* @wordpress-plugin
|
12 |
* Plugin Name: Advanced Ads
|
13 |
* Plugin URI: https://wpadvancedads.com
|
14 |
* Description: Manage and optimize your ads in WordPress
|
15 |
+
* Version: 1.7.23
|
16 |
* Author: Thomas Maier
|
17 |
* Author URI: http://webgilde.com
|
18 |
* Text Domain: advanced-ads
|
classes/ad_placements.php
CHANGED
@@ -500,19 +500,21 @@ class Advanced_Ads_Placements {
|
|
500 |
|
501 |
// add item to ad health
|
502 |
global $wp_admin_bar;
|
503 |
-
$wp_admin_bar
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
'
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
|
|
|
|
516 |
}
|
517 |
}
|
518 |
|
500 |
|
501 |
// add item to ad health
|
502 |
global $wp_admin_bar;
|
503 |
+
if( $wp_admin_bar instanceof WP_Admin_Bar ){
|
504 |
+
$wp_admin_bar->add_node( array(
|
505 |
+
'parent' => 'advanced_ads_ad_health',
|
506 |
+
'id' => 'advanced_ads_ad_health_the_content_not_enough_elements',
|
507 |
+
'title' => sprintf(__( 'Set <em>%s</em> to show more ads', 'advanced-ads' ), __('Disable level limitation', 'advanced-ads' ) ),
|
508 |
+
'href' => admin_url( '/admin.php?page=advanced-ads-settings#top#general' ),
|
509 |
+
'meta' => array(
|
510 |
+
'class' => 'advanced_ads_ad_health_warning',
|
511 |
+
'target' => '_blank'
|
512 |
+
)
|
513 |
+
) );
|
514 |
+
|
515 |
+
// manipulate $display_fine
|
516 |
+
add_filter( 'advanced-ads-ad-health-display-fine', '__return_false' );
|
517 |
+
}
|
518 |
}
|
519 |
}
|
520 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id
|
|
4 |
Tags: ads, ad, ad inserter, ad injection, ad manager, ads manager, ad widget, adrotate, adsense, advertise, advertisements, advertising, adverts, advert, amazon, banner, banners, buysellads, chitika, clickbank, dfp, doubleclick, geotarget, geolocation, geo location, google dfp, monetization, widget
|
5 |
Requires at least: WP 4.2, PHP 5.3
|
6 |
Tested up to: 4.7.3
|
7 |
-
Stable tag: 1.7.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -210,6 +210,10 @@ There is no revenue share. Advanced Ads doesn’t alter your ad codes in a way t
|
|
210 |
|
211 |
== Changelog ==
|
212 |
|
|
|
|
|
|
|
|
|
213 |
= 1.7.22 =
|
214 |
|
215 |
* added option to also consider elements in containers for ad content injection
|
4 |
Tags: ads, ad, ad inserter, ad injection, ad manager, ads manager, ad widget, adrotate, adsense, advertise, advertisements, advertising, adverts, advert, amazon, banner, banners, buysellads, chitika, clickbank, dfp, doubleclick, geotarget, geolocation, geo location, google dfp, monetization, widget
|
5 |
Requires at least: WP 4.2, PHP 5.3
|
6 |
Tested up to: 4.7.3
|
7 |
+
Stable tag: 1.7.23
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
210 |
|
211 |
== Changelog ==
|
212 |
|
213 |
+
= 1.7.23 =
|
214 |
+
|
215 |
+
* fix a warning that appears when wp admin bar is missing.
|
216 |
+
|
217 |
= 1.7.22 =
|
218 |
|
219 |
* added option to also consider elements in containers for ad content injection
|