Version Description
- prevent ad injection on BuddyPress image upload pages
- added more Yandex bots to bot check
- compatibility with iOS 9.3
Download this release
Release Info
Developer | webzunft |
Plugin | Advanced Ads |
Version | 1.8.14 |
Comparing to | |
See all releases |
Code changes from version 1.8.13 to 1.8.14
- advanced-ads.php +2 -2
- modules/adblock-finder/public/script.js +4 -3
- public/class-advanced-ads.php +6 -1
- readme.txt +8 -2
advanced-ads.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
* Plugin Name: Advanced Ads
|
13 |
* Plugin URI: https://wpadvancedads.com
|
14 |
* Description: Manage and optimize your ads in WordPress
|
15 |
-
* Version: 1.8.
|
16 |
* Author: Thomas Maier
|
17 |
* Author URI: https://wpadvancedads.com
|
18 |
* Text Domain: advanced-ads
|
@@ -39,7 +39,7 @@ define( 'ADVADS_BASE_DIR', dirname( ADVADS_BASE ) ); // directory of the plugin
|
|
39 |
// general and global slug, e.g. to store options in WP, textdomain
|
40 |
define( 'ADVADS_SLUG', 'advanced-ads' );
|
41 |
define( 'ADVADS_URL', 'https://wpadvancedads.com/' );
|
42 |
-
define( 'ADVADS_VERSION', '1.8.
|
43 |
|
44 |
/*----------------------------------------------------------------------------*
|
45 |
* Autoloading, modules and functions
|
12 |
* Plugin Name: Advanced Ads
|
13 |
* Plugin URI: https://wpadvancedads.com
|
14 |
* Description: Manage and optimize your ads in WordPress
|
15 |
+
* Version: 1.8.14
|
16 |
* Author: Thomas Maier
|
17 |
* Author URI: https://wpadvancedads.com
|
18 |
* Text Domain: advanced-ads
|
39 |
// general and global slug, e.g. to store options in WP, textdomain
|
40 |
define( 'ADVADS_SLUG', 'advanced-ads' );
|
41 |
define( 'ADVADS_URL', 'https://wpadvancedads.com/' );
|
42 |
+
define( 'ADVADS_VERSION', '1.8.14' );
|
43 |
|
44 |
/*----------------------------------------------------------------------------*
|
45 |
* Autoloading, modules and functions
|
modules/adblock-finder/public/script.js
CHANGED
@@ -26,10 +26,11 @@
|
|
26 |
document.body.appendChild( ad );
|
27 |
|
28 |
RAF( function() {
|
29 |
-
var styles = window.getComputedStyle( ad );
|
|
|
30 |
|
31 |
-
is_enabled = styles.getPropertyValue( 'display' ) === 'none'
|
32 |
-
||
|
33 |
|
34 |
// Call pending callbacks.
|
35 |
for ( var i = 0; i < pending_callbacks.length; i++ ) {
|
26 |
document.body.appendChild( ad );
|
27 |
|
28 |
RAF( function() {
|
29 |
+
var styles = window.getComputedStyle && window.getComputedStyle( ad );
|
30 |
+
var moz_binding = styles && styles.getPropertyValue( '-moz-binding' );
|
31 |
|
32 |
+
is_enabled = ( styles && styles.getPropertyValue( 'display' ) === 'none' )
|
33 |
+
|| ( typeof moz_binding === 'string' && moz_binding.indexOf( 'about:' ) !== -1 );
|
34 |
|
35 |
// Call pending callbacks.
|
36 |
for ( var i = 0; i < pending_callbacks.length; i++ ) {
|
public/class-advanced-ads.php
CHANGED
@@ -75,7 +75,7 @@ class Advanced_Ads {
|
|
75 |
* @since 1.4.9
|
76 |
* @var array list of bots
|
77 |
*/
|
78 |
-
protected $bots = array('bot','spider','crawler','scraper','parser','008','Accoona-AI-Agent','ADmantX','alexa','appie','Apple-PubSub','Arachmo','Ask Jeeves','avira\.com','B-l-i-t-z-B-O-T','boitho\.com-dc','BUbiNG','Cerberian Drtrs','Charlotte','cosmos','Covario IDS','curl','DataparkSearch','DDG-Android','expo9','facebookexternalhit','Feedfetcher-Google','FindLinks','Firefly','froogle','Genieo','heritrix','Holmes','htdig','https://developers\.google\.com','ia_archiver','ichiro','igdeSpyder','InfoSeek','inktomi','Kraken','L\.webis','Larbin','Linguee','LinkWalker','looksmart','lwp-trivial','mabontland','Mediapartners-Google','Mnogosearch','mogimogi','Morning Paper','MVAClient','NationalDirectory','NetResearchServer','NewsGator','NG-Search','Nusearch','NutchCVS','Nymesis','oegp','Orbiter','Peew','Pompos','PostPost','proximic','PycURL','Qseero','rabaz','Radian6','Reeder', 'savetheworldheritage','SBIder','Scooter','ScoutJet','Scrubby','SearchSight','semanticdiscovery','Sensis','ShopWiki','silk','Snappy','Spade','Sqworm','StackRambler','TechnoratiSnoop','TECNOSEEK','Teoma','Thumbnail\.CZ','TinEye','truwoGPS','updated','Vagabondo','voltron','Vortex','voyager','VYU2','WebBug','webcollage','WebIndex','Websquash\.com','WeSEE:Ads','wf84','Wget','WomlpeFactory','WordPress','yacy','Yahoo! Slurp','Yahoo! Slurp China','YahooSeeker','YahooSeeker-Testing','YandexImages','Yeti','yoogliFetchAgent','Zao','ZyBorg','okhttp','ips-agent','ltx71','Optimizer','Daum','Qwantify');
|
79 |
|
80 |
/**
|
81 |
*
|
@@ -377,6 +377,11 @@ class Advanced_Ads {
|
|
377 |
public function inject_content($content = ''){
|
378 |
$options = $this->plugin->options();
|
379 |
|
|
|
|
|
|
|
|
|
|
|
380 |
// check if ads are disabled in secondary queries and this function was called by ajax (in secondary query)
|
381 |
if ( ! empty( $options['disabled-ads']['secondary'] ) && ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
|
382 |
return $content;
|
75 |
* @since 1.4.9
|
76 |
* @var array list of bots
|
77 |
*/
|
78 |
+
protected $bots = array('bot','spider','crawler','scraper','parser','008','Accoona-AI-Agent','ADmantX','alexa','appie','Apple-PubSub','Arachmo','Ask Jeeves','avira\.com','B-l-i-t-z-B-O-T','boitho\.com-dc','BUbiNG','Cerberian Drtrs','Charlotte','cosmos','Covario IDS','curl','DataparkSearch','DDG-Android','expo9','facebookexternalhit','Feedfetcher-Google','FindLinks','Firefly','froogle','Genieo','heritrix','Holmes','htdig','https://developers\.google\.com','ia_archiver','ichiro','igdeSpyder','InfoSeek','inktomi','Kraken','L\.webis','Larbin','Linguee','LinkWalker','looksmart','lwp-trivial','mabontland','Mediapartners-Google','Mnogosearch','mogimogi','Morning Paper','MVAClient','NationalDirectory','NetResearchServer','NewsGator','NG-Search','Nusearch','NutchCVS','Nymesis','oegp','Orbiter','Peew','Pompos','PostPost','proximic','PycURL','Qseero','rabaz','Radian6','Reeder', 'savetheworldheritage','SBIder','Scooter','ScoutJet','Scrubby','SearchSight','semanticdiscovery','Sensis','ShopWiki','silk','Snappy','Spade','Sqworm','StackRambler','TechnoratiSnoop','TECNOSEEK','Teoma','Thumbnail\.CZ','TinEye','truwoGPS','updated','Vagabondo','voltron','Vortex','voyager','VYU2','WebBug','webcollage','WebIndex','Websquash\.com','WeSEE:Ads','wf84','Wget','WomlpeFactory','WordPress','yacy','Yahoo! Slurp','Yahoo! Slurp China','YahooSeeker','YahooSeeker-Testing','YandexBot','YandexMedia','YandexBlogs','YandexNews','YandexCalendar','YandexImages','Yeti','yoogliFetchAgent','Zao','ZyBorg','okhttp','ips-agent','ltx71','Optimizer','Daum','Qwantify');
|
79 |
|
80 |
/**
|
81 |
*
|
377 |
public function inject_content($content = ''){
|
378 |
$options = $this->plugin->options();
|
379 |
|
380 |
+
// do not inject in content when on a BuddyPress profile upload page (avatar & cover image)
|
381 |
+
if ( ( function_exists( 'bp_is_user_change_avatar' ) && bp_is_user_change_avatar() ) || ( function_exists( 'bp_is_user_change_cover_image' ) && bp_is_user_change_cover_image() ) ) {
|
382 |
+
return $content;
|
383 |
+
}
|
384 |
+
|
385 |
// check if ads are disabled in secondary queries and this function was called by ajax (in secondary query)
|
386 |
if ( ! empty( $options['disabled-ads']['secondary'] ) && ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
|
387 |
return $content;
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: webzunft
|
|
3 |
Donate link:https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5RRRCEBGN3UT2
|
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: 4.6
|
6 |
-
Tested up to: 4.
|
7 |
Requires PHP: 5.2
|
8 |
-
Stable tag: 1.8.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -230,6 +230,12 @@ Yes. Advanced Ads is based on WordPress standards and therefore easily customiza
|
|
230 |
|
231 |
== Changelog ==
|
232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
= 1.8.13 =
|
234 |
|
235 |
* improved security of WP Admin forms and AJAX requests
|
3 |
Donate link:https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5RRRCEBGN3UT2
|
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: 4.6
|
6 |
+
Tested up to: 4.9
|
7 |
Requires PHP: 5.2
|
8 |
+
Stable tag: 1.8.14
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
230 |
|
231 |
== Changelog ==
|
232 |
|
233 |
+
= 1.8.14 =
|
234 |
+
|
235 |
+
* prevent ad injection on BuddyPress image upload pages
|
236 |
+
* added more Yandex bots to bot check
|
237 |
+
* compatibility with iOS 9.3
|
238 |
+
|
239 |
= 1.8.13 =
|
240 |
|
241 |
* improved security of WP Admin forms and AJAX requests
|