List category posts - Version 0.84.2

Version Description

  • Fixed includeposts undefined index in older widgets.
  • Fixed invalid href attribute in morelink.
Download this release

Release Info

Developer fernandobt
Plugin Icon 128x128 List category posts
Version 0.84.2
Comparing to
See all releases

Code changes from version 0.84.1 to 0.84.2

include/lcp-catlist.php CHANGED
@@ -182,7 +182,7 @@ class CatList{
182
  */
183
  public function get_morelink() {
184
  if (!empty($this->params['morelink'])) {
185
- $props = ['href=' => get_category_link($this->lcp_category_id)];
186
  $readmore = ($this->params['morelink'] !== '' ? $this->params['morelink'] : 'More posts');
187
  return $this->wrapper->to_html('a', $props, $readmore);
188
  } else {
182
  */
183
  public function get_morelink() {
184
  if (!empty($this->params['morelink'])) {
185
+ $props = ['href' => get_category_link($this->lcp_category_id)];
186
  $readmore = ($this->params['morelink'] !== '' ? $this->params['morelink'] : 'More posts');
187
  return $this->wrapper->to_html('a', $props, $readmore);
188
  } else {
include/lcp-widget.php CHANGED
@@ -25,8 +25,7 @@ class ListCategoryPostsWidget extends WP_Widget{
25
  $excludeposts = $post->ID;
26
  if(!isset($excludeposts))
27
  $excludeposts = ($instance['excludeposts'] != '') ? $instance['excludeposts'] : 0;
28
- if(!isset($includeposts))
29
- $includeposts = ($instance['includeposts'] != '') ? $instance['includeposts'] : 0;
30
  $offset = (is_numeric($instance['offset'])) ? $instance['offset'] : 0;
31
  $category_id = $instance['categoryid'];
32
  $dateformat = ($instance['dateformat']) ? $instance['dateformat'] : get_option('date_format');
25
  $excludeposts = $post->ID;
26
  if(!isset($excludeposts))
27
  $excludeposts = ($instance['excludeposts'] != '') ? $instance['excludeposts'] : 0;
28
+ $includeposts = isset($instance['includeposts']) ? $instance['includeposts'] : 0;
 
29
  $offset = (is_numeric($instance['offset'])) ? $instance['offset'] : 0;
30
  $category_id = $instance['categoryid'];
31
  $dateformat = ($instance['dateformat']) ? $instance['dateformat'] : get_option('date_format');
list-category-posts.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: List category posts
4
  Plugin URI: https://github.com/picandocodigo/List-Category-Posts
5
  Description: List Category Posts allows you to list posts by category in a post/page using the [catlist] shortcode. This shortcode accepts a category name or id, the order in which you want the posts to display, the number of posts to display and many more parameters. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].
6
- Version: 0.84.1
7
  Author: Fernando Briano
8
  Author URI: http://fernandobriano.com
9
 
3
  Plugin Name: List category posts
4
  Plugin URI: https://github.com/picandocodigo/List-Category-Posts
5
  Description: List Category Posts allows you to list posts by category in a post/page using the [catlist] shortcode. This shortcode accepts a category name or id, the order in which you want the posts to display, the number of posts to display and many more parameters. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].
6
+ Version: 0.84.2
7
  Author: Fernando Briano
8
  Author URI: http://fernandobriano.com
9
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: list, categories, posts, cms
5
  Requires at least: 3.3
6
  Tested up to: 5.7.1
7
  Requires PHP: 5.4
8
- Stable tag: 0.84.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -43,6 +43,11 @@ Great to use WordPress as a CMS, and create pages with several categories posts.
43
  Klemens Starybrat has created a GUI for List Category Posts. It helps you create a shortcode from a nice visual interface in WordPress' text editor. Check it out:
44
  [GUI for List Category Posts](https://wordpress.org/plugins/gui-for-lcp/)
45
 
 
 
 
 
 
46
  **Widget**
47
 
48
  Since WordPress 4.9, [you can use shortcode in text widgets](https://make.wordpress.org/core/2017/10/24/widget-improvements-in-wordpress-4-9/). So you can just add a text widget in Appearence > Widgets and write the List Category Posts shortcode.
@@ -232,6 +237,11 @@ Template system has changed. Custom templates should be stored in WordPress them
232
 
233
  == Changelog ==
234
 
 
 
 
 
 
235
  = 0.84.1 =
236
 
237
  * Filter hook added: `shortcode_atts_catlist`, see [the docs](https://developer.wordpress.org/reference/hooks/shortcode_atts_shortcode/).
5
  Requires at least: 3.3
6
  Tested up to: 5.7.1
7
  Requires PHP: 5.4
8
+ Stable tag: 0.84.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
43
  Klemens Starybrat has created a GUI for List Category Posts. It helps you create a shortcode from a nice visual interface in WordPress' text editor. Check it out:
44
  [GUI for List Category Posts](https://wordpress.org/plugins/gui-for-lcp/)
45
 
46
+ **AJAX pagination**
47
+
48
+ The ajax pagination feature is maintained in an add-on plugin by Klemens Starybrat. Check it out:
49
+ [LCP Ajax Pagination](https://wordpress.org/plugins/lcp-ajax-pagination)
50
+
51
  **Widget**
52
 
53
  Since WordPress 4.9, [you can use shortcode in text widgets](https://make.wordpress.org/core/2017/10/24/widget-improvements-in-wordpress-4-9/). So you can just add a text widget in Appearence > Widgets and write the List Category Posts shortcode.
237
 
238
  == Changelog ==
239
 
240
+ = 0.84.2 =
241
+
242
+ * Fixed includeposts undefined index in older widgets.
243
+ * Fixed invalid href attribute in morelink.
244
+
245
  = 0.84.1 =
246
 
247
  * Filter hook added: `shortcode_atts_catlist`, see [the docs](https://developer.wordpress.org/reference/hooks/shortcode_atts_shortcode/).