Advanced Ads - Version 1.14.6

Version Description

  • fixed frontend issue showing for admins if the HEAD placement is used
Download this release

Release Info

Developer webzunft
Plugin Icon 128x128 Advanced Ads
Version 1.14.6
Comparing to
See all releases

Code changes from version 1.14.5 to 1.14.6

Files changed (3) hide show
  1. advanced-ads.php +2 -2
  2. classes/frontend_checks.php +2 -2
  3. readme.txt +5 -1
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.14.5
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
40
  define( 'ADVADS_SLUG', 'advanced-ads' );
41
  define( 'ADVADS_URL', 'https://wpadvancedads.com/' );
42
- define( 'ADVADS_VERSION', '1.14.5' );
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.14.6
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
40
  define( 'ADVADS_SLUG', 'advanced-ads' );
41
  define( 'ADVADS_URL', 'https://wpadvancedads.com/' );
42
+ define( 'ADVADS_VERSION', '1.14.6' );
43
 
44
  /*----------------------------------------------------------------------------*
45
  * Autoloading, modules and functions
classes/frontend_checks.php CHANGED
@@ -832,7 +832,7 @@ class Advanced_Ads_Frontend_Checks {
832
  // strip linebreaks, because, a line break after a comment is identified as a text node
833
  $content = preg_replace( "/\r|\n/", "", $content );
834
 
835
- if ( ! $dom = $this->get_ad_dom( $content ) ) {
836
  return true;
837
  }
838
 
@@ -860,7 +860,7 @@ class Advanced_Ads_Frontend_Checks {
860
  * @param string $content
861
  * @return DOMDocument|false
862
  */
863
- private function get_ad_dom( $content ) {
864
  if ( ! extension_loaded( 'dom' ) ) {
865
  return false;
866
  }
832
  // strip linebreaks, because, a line break after a comment is identified as a text node
833
  $content = preg_replace( "/\r|\n/", "", $content );
834
 
835
+ if ( ! $dom = self::get_ad_dom( $content ) ) {
836
  return true;
837
  }
838
 
860
  * @param string $content
861
  * @return DOMDocument|false
862
  */
863
+ private static function get_ad_dom( $content ) {
864
  if ( ! extension_loaded( 'dom' ) ) {
865
  return false;
866
  }
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: ads, ad manager, ad rotation, adsense, banner
5
  Requires at least: 4.6
6
  Tested up to: 5.2
7
  Requires PHP: 5.6
8
- Stable tag: 1.14.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -303,6 +303,10 @@ Yes. Advanced Ads is based on WordPress standards and therefore easily customiza
303
 
304
  == Changelog ==
305
 
 
 
 
 
306
  = 1.14.5 =
307
 
308
  * sanitize Container ID option on save and warn about wrong format
5
  Requires at least: 4.6
6
  Tested up to: 5.2
7
  Requires PHP: 5.6
8
+ Stable tag: 1.14.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
303
 
304
  == Changelog ==
305
 
306
+ = 1.14.6 =
307
+
308
+ * fixed frontend issue showing for admins if the HEAD placement is used
309
+
310
  = 1.14.5 =
311
 
312
  * sanitize Container ID option on save and warn about wrong format