Advanced Ads - Version 1.8.6

Version Description

  • hotfix for PHP below 5.4
  • fixed HTTPS warning showing up for links
Download this release

Release Info

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

Code changes from version 1.8.5 to 1.8.6

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.5
16
  * Author: Thomas Maier
17
  * Author URI: http://webgilde.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.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.8.6
16
  * Author: Thomas Maier
17
  * Author URI: http://webgilde.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.6' );
43
 
44
  /*----------------------------------------------------------------------------*
45
  * Autoloading, modules and functions
classes/ad-debug.php CHANGED
@@ -266,7 +266,8 @@ class Advanced_Ads_Ad_Debug {
266
  public static function is_https_and_http( Advanced_Ads_Ad $ad ) {
267
  if ( is_ssl()
268
  && ( $ad->type === 'plain' || $ad->type === 'content' )
269
- && preg_match( '/http:\/\//i', $ad->content )
 
270
  ) {
271
  return __( 'Your website is using HTTPS, but the ad code contains HTTP and might not work.', 'advanced-ads' );
272
  }
266
  public static function is_https_and_http( Advanced_Ads_Ad $ad ) {
267
  if ( is_ssl()
268
  && ( $ad->type === 'plain' || $ad->type === 'content' )
269
+ // Find img, iframe, script. '\\\\' denotes a single backslash
270
+ && preg_match( '#\ssrc=\\\\?[\'"]http:\\\\?/\\\\?/#i', $ad->content )
271
  ) {
272
  return __( 'Your website is using HTTPS, but the ad code contains HTTP and might not work.', 'advanced-ads' );
273
  }
classes/ad_placements.php CHANGED
@@ -571,7 +571,7 @@ class Advanced_Ads_Placements {
571
  * @return array
572
  */
573
  public static function get_placements_by( $type, $id ) {
574
- $result = [];
575
 
576
  $placements = Advanced_Ads::get_ad_placements_array();
577
  foreach ( $placements as $_id => $_placement ) {
571
  * @return array
572
  */
573
  public static function get_placements_by( $type, $id ) {
574
+ $result = array();
575
 
576
  $placements = Advanced_Ads::get_ad_placements_array();
577
  foreach ( $placements as $_id => $_placement ) {
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: 4.2
6
  Tested up to: 4.8.1
7
- Stable tag: 1.8.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -211,6 +211,11 @@ There is no revenue share. Advanced Ads doesn’t alter your ad codes in a way t
211
 
212
  == Changelog ==
213
 
 
 
 
 
 
214
  = 1.8.5 =
215
 
216
  * optimizaed Wizard – fewer steps and less clutter
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.2
6
  Tested up to: 4.8.1
7
+ Stable tag: 1.8.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
211
 
212
  == Changelog ==
213
 
214
+ = 1.8.6 =
215
+
216
+ * hotfix for PHP below 5.4
217
+ * fixed HTTPS warning showing up for links
218
+
219
  = 1.8.5 =
220
 
221
  * optimizaed Wizard – fewer steps and less clutter