Advanced Ads - Version 1.10.3

Version Description

  • removed filter for paginated ad list since it was unintentionally broken by third-party plugins
  • fixed compatibility with Q2W3 Fixed Widget that gone missing with last update
Download this release

Release Info

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

Code changes from version 1.10.2 to 1.10.3

admin/includes/class-list-filters.php CHANGED
@@ -296,7 +296,8 @@ class Advanced_Ads_Ad_List_Filters {
296
  $new_posts = $this->ad_filters( $this->all_ads, $the_query );
297
  }
298
 
299
- $per_page = 20;
 
300
  if ( $per_page < count( $new_posts ) ) {
301
  $paged = isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 1;
302
  $total = count( $new_posts );
296
  $new_posts = $this->ad_filters( $this->all_ads, $the_query );
297
  }
298
 
299
+ $per_page = $the_query->query_vars['posts_per_page'] ? $the_query->query_vars['posts_per_page'] : 20;
300
+
301
  if ( $per_page < count( $new_posts ) ) {
302
  $paged = isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 1;
303
  $total = count( $new_posts );
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.10.2
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.10.2' );
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.10.3
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.10.3' );
43
 
44
  /*----------------------------------------------------------------------------*
45
  * Autoloading, modules and functions
classes/widget.php CHANGED
@@ -210,7 +210,7 @@ class Advanced_Ads_Widget extends WP_Widget {
210
  * @return str $before_widget
211
  */
212
  private function maybe_replace_frontend_id( $before_widget, $instance ) {
213
- if ( empty( $instance['remove-widget-id'] )
214
  || defined( 'JNEWS_THEME_ID' ) // the JNews theme overrides the widget ID and resets it, so we target this specifically.
215
  ) {
216
  $pattern = '#\sid=("|\')[^"\']+["\']#';
210
  * @return str $before_widget
211
  */
212
  private function maybe_replace_frontend_id( $before_widget, $instance ) {
213
+ if ( ! empty( $instance['remove-widget-id'] )
214
  || defined( 'JNEWS_THEME_ID' ) // the JNews theme overrides the widget ID and resets it, so we target this specifically.
215
  ) {
216
  $pattern = '#\sid=("|\')[^"\']+["\']#';
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: ads, ad manager, ad widget, ad rotation, adsense, advertise, advertisement
5
  Requires at least: 4.6
6
  Tested up to: 4.9
7
  Requires PHP: 5.4
8
- Stable tag: 1.10.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -266,6 +266,11 @@ Yes. Advanced Ads is based on WordPress standards and therefore easily customiza
266
 
267
  == Changelog ==
268
 
 
 
 
 
 
269
  = 1.10.2 =
270
 
271
  * fixed issue with JNews theme which produced a widget ID that is blockable by ad blockers
5
  Requires at least: 4.6
6
  Tested up to: 4.9
7
  Requires PHP: 5.4
8
+ Stable tag: 1.10.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
266
 
267
  == Changelog ==
268
 
269
+ = 1.10.3 =
270
+
271
+ * removed filter for paginated ad list since it was unintentionally broken by third-party plugins
272
+ * fixed compatibility with Q2W3 Fixed Widget that gone missing with last update
273
+
274
  = 1.10.2 =
275
 
276
  * fixed issue with JNews theme which produced a widget ID that is blockable by ad blockers