Advanced Ads - Version 1.5.4.1

Version Description

  • hotfix for new visitor conditions not showing up
Download this release

Release Info

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

Code changes from version 1.5.4 to 1.5.4.1

admin/views/ad-visitor-metabox.php CHANGED
@@ -3,8 +3,8 @@ $visitor_conditions = Advanced_Ads_Visitor_Conditions::get_instance()->condition
3
  $options = $ad->options( 'visitors' );
4
  ?><p class="description"><?php _e( 'Display conditions that are based on the user. Use with caution on cached websites.', ADVADS_SLUG ); ?></p>
5
  <div id="advads-visitor-conditions">
6
- <?php if ( isset( $options ) ) :
7
- ?><table><tbody><?php
8
  $i = 0;
9
  foreach ( $options as $_options ) :
10
  if ( isset( $visitor_conditions[ $_options['type'] ]['metabox'] ) ) {
@@ -20,8 +20,8 @@ foreach ( $options as $_options ) :
20
  ?></td><td><button type="button" class="advads-visitor-conditions-remove button">x</button></td></tr><?php
21
  }
22
  endforeach;
23
- ?></tbody></table><?php
24
- endif; ?>
25
  <input type="hidden" id="advads-visitor-conditions-index" value="<?php echo isset( $options ) ? count( $options ) : 0; ?>"/>
26
  </div>
27
  <hr/>
3
  $options = $ad->options( 'visitors' );
4
  ?><p class="description"><?php _e( 'Display conditions that are based on the user. Use with caution on cached websites.', ADVADS_SLUG ); ?></p>
5
  <div id="advads-visitor-conditions">
6
+ <table><tbody><?php
7
+ if ( isset( $options ) ) :
8
  $i = 0;
9
  foreach ( $options as $_options ) :
10
  if ( isset( $visitor_conditions[ $_options['type'] ]['metabox'] ) ) {
20
  ?></td><td><button type="button" class="advads-visitor-conditions-remove button">x</button></td></tr><?php
21
  }
22
  endforeach;
23
+ endif;
24
+ ?></tbody></table>
25
  <input type="hidden" id="advads-visitor-conditions-index" value="<?php echo isset( $options ) ? count( $options ) : 0; ?>"/>
26
  </div>
27
  <hr/>
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.5.4
16
  * Author: Thomas Maier
17
  * Author URI: http://webgilde.com
18
  * Text Domain: advanced-ads
@@ -38,7 +38,7 @@ define( 'ADVADS_BASE_DIR', dirname( plugin_basename( __FILE__ ) ) ); // director
38
  // general and global slug, e.g. to store options in WP, textdomain
39
  define( 'ADVADS_SLUG', 'advanced-ads' );
40
  define( 'ADVADS_URL', 'https://wpadvancedads.com/' );
41
- define( 'ADVADS_VERSION', '1.5.4' );
42
 
43
  /*----------------------------------------------------------------------------*
44
  * 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.5.4.1
16
  * Author: Thomas Maier
17
  * Author URI: http://webgilde.com
18
  * Text Domain: advanced-ads
38
  // general and global slug, e.g. to store options in WP, textdomain
39
  define( 'ADVADS_SLUG', 'advanced-ads' );
40
  define( 'ADVADS_URL', 'https://wpadvancedads.com/' );
41
+ define( 'ADVADS_VERSION', '1.5.4.1' );
42
 
43
  /*----------------------------------------------------------------------------*
44
  * Autoloading, modules and functions
classes/visitor-conditions.php CHANGED
@@ -114,8 +114,8 @@ class Advanced_Ads_Visitor_Conditions {
114
  <label><?php echo $type_options[ $options['type'] ]['label'];
115
  ?><select name="<?php echo $name; ?>[operator]">
116
  <option value="is_equal" <?php selected( 'is_equal', $operator ); ?>><?php _e( 'equal', ADVADS_SLUG ); ?></option>
117
- <option value="is_higher" <?php selected( 'is_higher', $operator ); ?>><?php _e( 'equal and higher', ADVADS_SLUG ); ?></option>
118
- <option value="is_lower" <?php selected( 'is_lower', $operator ); ?>><?php _e( 'equal and lower', ADVADS_SLUG ); ?></option>
119
  </select></label><input type="number" name="<?php echo $name; ?>[value]" value="<?php echo absint( $value ); ?>"/></p><?php
120
  }
121
 
114
  <label><?php echo $type_options[ $options['type'] ]['label'];
115
  ?><select name="<?php echo $name; ?>[operator]">
116
  <option value="is_equal" <?php selected( 'is_equal', $operator ); ?>><?php _e( 'equal', ADVADS_SLUG ); ?></option>
117
+ <option value="is_higher" <?php selected( 'is_higher', $operator ); ?>><?php _e( 'equal or higher', ADVADS_SLUG ); ?></option>
118
+ <option value="is_lower" <?php selected( 'is_lower', $operator ); ?>><?php _e( 'equal or lower', ADVADS_SLUG ); ?></option>
119
  </select></label><input type="number" name="<?php echo $name; ?>[value]" value="<?php echo absint( $value ); ?>"/></p><?php
120
  }
121
 
public/class-advanced-ads.php CHANGED
@@ -25,7 +25,7 @@ class Advanced_Ads {
25
  * @var string
26
  */
27
 
28
- const VERSION = '1.5.4';
29
 
30
  /**
31
  * post type slug
25
  * @var string
26
  */
27
 
28
+ const VERSION = '1.5.4.1';
29
 
30
  /**
31
  * post type slug
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, adsense, display, banner, advertisements, adverts, advert, monetization
5
  Requires at least: WP 3.5, PHP 5.3
6
  Tested up to: 4.2.2
7
- Stable tag: 1.5.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -174,6 +174,10 @@ There is no revenue share. Advanced Ads doesn’t alter your ad codes in a way t
174
 
175
  == Changelog ==
176
 
 
 
 
 
177
  = 1.5.4 =
178
 
179
  * PLEASE READ the [update notice](https://wpadvancedads.com/advanced-ads-1-5-4/) to learn more about the changes on visitor conditions
4
  Tags: ads, ad, adsense, display, banner, advertisements, adverts, advert, monetization
5
  Requires at least: WP 3.5, PHP 5.3
6
  Tested up to: 4.2.2
7
+ Stable tag: 1.5.4.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
174
 
175
  == Changelog ==
176
 
177
+ = 1.5.4.1 =
178
+
179
+ * hotfix for new visitor conditions not showing up
180
+
181
  = 1.5.4 =
182
 
183
  * PLEASE READ the [update notice](https://wpadvancedads.com/advanced-ads-1-5-4/) to learn more about the changes on visitor conditions