Advanced Ads - Version 1.7.1.5

Version Description

  • hotfix: added missing file
Download this release

Release Info

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

Code changes from version 1.7.1.4 to 1.7.1.5

Files changed (3) hide show
  1. admin/includes/class-notices.php +21 -10
  2. advanced-ads.php +2 -2
  3. readme.txt +5 -1
admin/includes/class-notices.php CHANGED
@@ -36,7 +36,7 @@ class Advanced_Ads_Admin_Notices {
36
  * @since 1.5.3
37
  * @var array
38
  */
39
- protected $notices = array();
40
 
41
  /**
42
  * plugin class
@@ -48,7 +48,7 @@ class Advanced_Ads_Admin_Notices {
48
  // load notices
49
  $this->load_notices();
50
  // display notices
51
- $this->display_notices();
52
 
53
  add_action( 'advanced-ads-ad-params-before', array( $this, 'adsense_tutorial' ), 10, 2 );
54
  }
@@ -109,7 +109,6 @@ class Advanced_Ads_Admin_Notices {
109
  */
110
  public function register_version_notices() {
111
  $internal_options = $this->plugin->internal_options();
112
- $new_options = $internal_options; // in case we udpate options here
113
  $plugin_options = $this->plugin->options();
114
 
115
  // set an artifical older version for updates on installed plugins before the notice logic was invented
@@ -121,7 +120,7 @@ class Advanced_Ads_Admin_Notices {
121
  // empty version for new installations
122
  $old_version = 0;
123
  }
124
-
125
  if ( isset($internal_options['version']) && ($internal_options['version'] !== ADVADS_VERSION) && $old_version ) {
126
  if ( version_compare( $old_version, '1.4.5' ) == -1 ) {
127
  $this->notices[] = '1.4.5';
@@ -139,12 +138,24 @@ class Advanced_Ads_Admin_Notices {
139
  $this->notices[] = '1.7';
140
  }
141
  }
142
- $new_options['version'] = ADVADS_VERSION;
143
-
144
- // update version numbers
145
- if ( $internal_options !== $new_options ) {
146
- $this->plugin->update_internal_options( $new_options );
147
- }
 
 
 
 
 
 
 
 
 
 
 
 
148
  }
149
 
150
  /**
36
  * @since 1.5.3
37
  * @var array
38
  */
39
+ public $notices = array();
40
 
41
  /**
42
  * plugin class
48
  // load notices
49
  $this->load_notices();
50
  // display notices
51
+ //$this->display_notices();
52
 
53
  add_action( 'advanced-ads-ad-params-before', array( $this, 'adsense_tutorial' ), 10, 2 );
54
  }
109
  */
110
  public function register_version_notices() {
111
  $internal_options = $this->plugin->internal_options();
 
112
  $plugin_options = $this->plugin->options();
113
 
114
  // set an artifical older version for updates on installed plugins before the notice logic was invented
120
  // empty version for new installations
121
  $old_version = 0;
122
  }
123
+
124
  if ( isset($internal_options['version']) && ($internal_options['version'] !== ADVADS_VERSION) && $old_version ) {
125
  if ( version_compare( $old_version, '1.4.5' ) == -1 ) {
126
  $this->notices[] = '1.4.5';
138
  $this->notices[] = '1.7';
139
  }
140
  }
141
+
142
+ $this->update_version_number();
143
+ }
144
+
145
+ /**
146
+ * update version number to latest one
147
+ */
148
+ public function update_version_number(){
149
+
150
+ $internal_options = $this->plugin->internal_options();
151
+ $new_options = $internal_options; // in case we udpate options here
152
+
153
+ $new_options['version'] = ADVADS_VERSION;
154
+
155
+ // update version numbers
156
+ if ( $internal_options !== $new_options ) {
157
+ $this->plugin->update_internal_options( $new_options );
158
+ }
159
  }
160
 
161
  /**
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.7.1.4
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.7.1.4' );
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.7.1.5
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.7.1.5' );
43
 
44
  /*----------------------------------------------------------------------------*
45
  * Autoloading, modules and functions
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.5
7
- Stable tag: 1.7.1.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -198,6 +198,10 @@ There is no revenue share. Advanced Ads doesn’t alter your ad codes in a way t
198
 
199
  == Changelog ==
200
 
 
 
 
 
201
  = 1.7.1.4 =
202
 
203
  * search for title or id instead of content when selecting a Specific Page Display Condition
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.5
7
+ Stable tag: 1.7.1.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
198
 
199
  == Changelog ==
200
 
201
+ = 1.7.1.5 =
202
+
203
+ * hotfix: added missing file
204
+
205
  = 1.7.1.4 =
206
 
207
  * search for title or id instead of content when selecting a Specific Page Display Condition