WordPress Infinite Scroll – Ajax Load More - Version 2.13.0.1

Version Description

  • November 10, 2016 =

  • FIX - almEmpty() callback function not firing because of updated return value of empty query.

  • FIX - almdebug() filter causing 'Missing argument 2 for apply_filters()' error for some users.

  • FIX - Shortcode builder UI heading update.

Download this release

Release Info

Developer dcooney
Plugin Icon 128x128 WordPress Infinite Scroll – Ajax Load More
Version 2.13.0.1
Comparing to
See all releases

Code changes from version 2.13.0 to 2.13.0.1

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://connekthq.com/donate/
4
  Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, pagination, ajax pagination, ajax, ajax posts, ajax load posts, search, tags, category, post types, taxonomy, meta_query, woocommerce
5
  Requires at least: 3.6
6
  Tested up to: 4.7
7
- Stable tag: 2.13.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -16,7 +16,7 @@ Ajax Load More is a powerful solution for infinite scrolling and lazy loading po
16
 
17
  Build complex custom WordPress queries using the Ajax Load More shortcode builder then add the generated shortcode to your page via the content editor or directly into your template files.
18
 
19
- Ajax Load More is fully compatible with popular ecommerce plugins such as WooCommerce and Easy Digital Downloads.
20
 
21
  **[Get More Information](https://connekthq.com/plugins/ajax-load-more/)**
22
 
@@ -329,6 +329,12 @@ How to install Ajax Load More.
329
 
330
  == Changelog ==
331
 
 
 
 
 
 
 
332
  = 2.13.0 - November 6, 2016 =
333
 
334
  * NEW - ID shortcode parameter. Assigning a unique ID to an Ajax Load More instance will allow for filters to be run more easily.
4
  Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, pagination, ajax pagination, ajax, ajax posts, ajax load posts, search, tags, category, post types, taxonomy, meta_query, woocommerce
5
  Requires at least: 3.6
6
  Tested up to: 4.7
7
+ Stable tag: 2.13.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
16
 
17
  Build complex custom WordPress queries using the Ajax Load More shortcode builder then add the generated shortcode to your page via the content editor or directly into your template files.
18
 
19
+ Ajax Load More is fully compatible with popular eCommerce plugins such as WooCommerce and Easy Digital Downloads.
20
 
21
  **[Get More Information](https://connekthq.com/plugins/ajax-load-more/)**
22
 
329
 
330
  == Changelog ==
331
 
332
+ = 2.13.0.1 - November 10, 2016 =
333
+
334
+ * FIX - almEmpty() callback function not firing because of updated return value of empty query.
335
+ * FIX - almdebug() filter causing 'Missing argument 2 for apply_filters()' error for some users.
336
+ * FIX - Shortcode builder UI heading update.
337
+
338
  = 2.13.0 - November 6, 2016 =
339
 
340
  * NEW - ID shortcode parameter. Assigning a unique ID to an Ajax Load More instance will allow for filters to be run more easily.
admin/admin-functions.php CHANGED
@@ -21,7 +21,7 @@ function alm_is_admin_screen(){
21
 
22
  /*
23
  * alm_has_addon
24
- * Does user have an add-on installed and activated
25
  *
26
  * @return boolean
27
  * @since 2.13.0
@@ -34,4 +34,22 @@ function alm_has_addon(){
34
  return false;
35
  }
36
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
 
21
 
22
  /*
23
  * alm_has_addon
24
+ * Does user have add-ons installed and activated
25
  *
26
  * @return boolean
27
  * @since 2.13.0
34
  return false;
35
  }
36
  }
37
+
38
+
39
+
40
+ /*
41
+ * alm_has_addon_shortcodes
42
+ * Does user have an add-ons for shortcode builder installed and activated
43
+ *
44
+ * @return boolean
45
+ * @since 2.13.0.1
46
+ */
47
+
48
+ function alm_has_addon_shortcodes(){
49
+ if(has_action('alm_cache_installed') || has_action('alm_cta_installed') || has_action('alm_comments_installed') || has_action('alm_unlimited_installed') || has_action('alm_preload_installed') || has_action('alm_paging_installed') || has_action('alm_prev_post_installed') || has_action('alm_rest_api_installed') || has_action('alm_seo_installed') || has_action('alm_theme_repeaters_installed')) {
50
+ return true;
51
+ } else {
52
+ return false;
53
+ }
54
+ }
55
 
admin/shortcode-builder/shortcode-builder.php CHANGED
@@ -10,7 +10,7 @@
10
 
11
 
12
  <!-- Add-ons -->
13
- <?php if(alm_has_addon()) : ?>
14
 
15
  <div class="shortcode-parameter-wrap">
16
  <h2 class="shortcode-title"><?php _e('Add-ons', 'ajax-load-more'); ?></h2>
10
 
11
 
12
  <!-- Add-ons -->
13
+ <?php if(alm_has_addon_shortcodes()) : ?>
14
 
15
  <div class="shortcode-parameter-wrap">
16
  <h2 class="shortcode-title"><?php _e('Add-ons', 'ajax-load-more'); ?></h2>
ajax-load-more.php CHANGED
@@ -7,15 +7,15 @@ Text Domain: ajax-load-more
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: http://connekthq.com
10
- Version: 2.13.0
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
 
14
  */
15
 
16
 
17
- define('ALM_VERSION', '2.13.0');
18
- define('ALM_RELEASE', 'November 6, 2016');
19
  define('ALM_STORE_URL', 'https://connekthq.com');
20
 
21
 
@@ -378,7 +378,7 @@ if( !class_exists('AjaxLoadMore') ):
378
  $offset = (isset($_GET['offset'])) ? $_GET['offset'] : 0;
379
  $post_status = $_GET['post_status'];
380
  if($post_status == '') $post_status = 'publish';
381
- if($post_status != 'publish' || $post_status != 'inherit'){
382
  // If not 'publish', OR 'inherit' confirm user has rights to view these old posts.
383
  if (current_user_can( 'edit_theme_options' )){
384
  $post_status = $post_status;
@@ -734,7 +734,7 @@ if( !class_exists('AjaxLoadMore') ):
734
  $alm_has_cta = true;
735
  }
736
 
737
-
738
  endwhile; wp_reset_query();
739
 
740
  // End ALM Loop
@@ -747,7 +747,17 @@ if( !class_exists('AjaxLoadMore') ):
747
  apply_filters('alm_cache_file', $cache_id, $page, $data);
748
  }
749
 
750
- $debug = (apply_filters('alm_debug')) ? $alm_query : false;
 
 
 
 
 
 
 
 
 
 
751
 
752
  $return = array(
753
  'html' => $data,
@@ -764,8 +774,8 @@ if( !class_exists('AjaxLoadMore') ):
764
  $return = array(
765
  'html' => null,
766
  'meta' => array(
767
- 'postcount' => null,
768
- 'totalposts' => null,
769
  'debug' => null
770
  )
771
  );
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: http://connekthq.com
10
+ Version: 2.13.0.1
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
 
14
  */
15
 
16
 
17
+ define('ALM_VERSION', '2.13.0.1');
18
+ define('ALM_RELEASE', 'November 10, 2016');
19
  define('ALM_STORE_URL', 'https://connekthq.com');
20
 
21
 
378
  $offset = (isset($_GET['offset'])) ? $_GET['offset'] : 0;
379
  $post_status = $_GET['post_status'];
380
  if($post_status == '') $post_status = 'publish';
381
+ if($post_status != 'publish' && $post_status != 'inherit'){
382
  // If not 'publish', OR 'inherit' confirm user has rights to view these old posts.
383
  if (current_user_can( 'edit_theme_options' )){
384
  $post_status = $post_status;
734
  $alm_has_cta = true;
735
  }
736
 
737
+
738
  endwhile; wp_reset_query();
739
 
740
  // End ALM Loop
747
  apply_filters('alm_cache_file', $cache_id, $page, $data);
748
  }
749
 
750
+
751
+
752
+ /*
753
+ * alm_debug
754
+ *
755
+ * ALM Core Filter Hook
756
+ *
757
+ * @return $alm_query/false;
758
+ */
759
+ $debug = (apply_filters('alm_debug', false)) ? $alm_query : false;
760
+
761
 
762
  $return = array(
763
  'html' => $data,
774
  $return = array(
775
  'html' => null,
776
  'meta' => array(
777
+ 'postcount' => 0,
778
+ 'totalposts' => 0,
779
  'debug' => null
780
  )
781
  );