Category Posts Widget - Version 4.9.10

Version Description

  • December 15th 2020 =
  • Fixed Missing load more button
Download this release

Release Info

Developer Kometschuh
Plugin Icon 128x128 Category Posts Widget
Version 4.9.10
Comparing to
See all releases

Code changes from version 4.9.9 to 4.9.10

Files changed (3) hide show
  1. cat-posts.php +2 -2
  2. class-widget.php +1 -0
  3. readme.txt +5 -2
cat-posts.php CHANGED
@@ -12,7 +12,7 @@ Plugin Name: Category Posts Widget
12
  Plugin URI: https://wordpress.org/plugins/category-posts/
13
  Description: Adds a widget that shows the most recent posts from a single category.
14
  Author: TipTopPress
15
- Version: 4.9.9
16
  Author URI: http://tiptoppress.com
17
  Text Domain: category-posts
18
  Domain Path: /languages
@@ -25,7 +25,7 @@ if ( ! defined( 'ABSPATH' ) ) {
25
  exit;
26
  }
27
 
28
- const VERSION = '4.9.9';
29
  const DOC_URL = 'http://tiptoppress.com/category-posts-widget/documentation-4-9/';
30
  const PRO_URL = 'http://tiptoppress.com/term-and-category-based-posts-widget/';
31
  const SUPPORT_URL = 'https://wordpress.org/support/plugin/category-posts/';
12
  Plugin URI: https://wordpress.org/plugins/category-posts/
13
  Description: Adds a widget that shows the most recent posts from a single category.
14
  Author: TipTopPress
15
+ Version: 4.9.10
16
  Author URI: http://tiptoppress.com
17
  Text Domain: category-posts
18
  Domain Path: /languages
25
  exit;
26
  }
27
 
28
+ const VERSION = '4.9.10';
29
  const DOC_URL = 'http://tiptoppress.com/category-posts-widget/documentation-4-9/';
30
  const PRO_URL = 'http://tiptoppress.com/term-and-category-based-posts-widget/';
31
  const SUPPORT_URL = 'https://wordpress.org/support/plugin/category-posts/';
class-widget.php CHANGED
@@ -1115,6 +1115,7 @@ class Widget extends \WP_Widget {
1115
 
1116
  if( isset( $instance['enable_loadmore'] ) && $instance['enable_loadmore'] ) {
1117
  $args['showposts'] = 0;
 
1118
  $post_count = ( new \WP_Query( $args ) )->post_count; // May there is a better workflow to count the loadable items
1119
  }
1120
 
1115
 
1116
  if( isset( $instance['enable_loadmore'] ) && $instance['enable_loadmore'] ) {
1117
  $args['showposts'] = 0;
1118
+ $args['nopaging'] = true;
1119
  $post_count = ( new \WP_Query( $args ) )->post_count; // May there is a better workflow to count the loadable items
1120
  }
1121
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: mark-k, kometschuh, mkrdip
3
  Donate link: https://wordpress.org/support/plugin/category-posts/reviews/
4
  Tags: category, categories, posts, widget, posts widget, recent posts, category recent posts, shortcode, sidebar, excerpt, multiple widgets
5
  Requires at least: 2.8
6
- Tested up to: 5.6
7
- Stable tag: 4.9.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -130,6 +130,9 @@ Check also the .htaccess file, if there is an entry for an older PHP version.
130
  == Changelog ==
131
  [Read more on our blog ...](http://tiptoppress.com/category/category-posts-widget)
132
 
 
 
 
133
  = 4.9.9 - December 9th 2020 =
134
  * Load more placeholders
135
 
3
  Donate link: https://wordpress.org/support/plugin/category-posts/reviews/
4
  Tags: category, categories, posts, widget, posts widget, recent posts, category recent posts, shortcode, sidebar, excerpt, multiple widgets
5
  Requires at least: 2.8
6
+ Tested up to: 5.7
7
+ Stable tag: 4.9.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
130
  == Changelog ==
131
  [Read more on our blog ...](http://tiptoppress.com/category/category-posts-widget)
132
 
133
+ = 4.9.10 - December 15th 2020 =
134
+ * Fixed Missing load more button
135
+
136
  = 4.9.9 - December 9th 2020 =
137
  * Load more placeholders
138