List category posts - Version 0.73.2

Version Description

  • Bug fix release: [catlist categorypage="yes"] had stopped working with WordPress 4.9. This is because the category check would compare a return value against the "Empty Term" translation key which was changed in this commit adding periods at the end of some error messages. So it was just a matter of adding the period in the if condition. Thanks helmutka for reporting this!
Download this release

Release Info

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

Code changes from version 0.73.1 to 0.73.2

include/lcp-category.php CHANGED
@@ -60,7 +60,7 @@ class LcpCategory{
60
 
61
  public function current_category(){
62
  $category = get_category( get_query_var( 'category' ) );
63
- if( isset( $category->errors ) && $category->errors["invalid_term"][0] == __("Empty Term") ){
64
  global $post;
65
  $categories = get_the_category($post->ID);
66
  if ( !empty($categories) ){
60
 
61
  public function current_category(){
62
  $category = get_category( get_query_var( 'category' ) );
63
+ if( isset( $category->errors ) && $category->errors["invalid_term"][0] == __("Empty Term.") ){
64
  global $post;
65
  $categories = get_the_category($post->ID);
66
  if ( !empty($categories) ){
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.73.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.73.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: 4.9
7
  Requires PHP: 5.2.4
8
- Stable tag: 0.73.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -440,6 +440,10 @@ Template system has changed. Custom templates should be stored in WordPress them
440
 
441
  == Changelog ==
442
 
 
 
 
 
443
  = 0.73.1 =
444
 
445
  * Bumped version because WordPress.org wouldn't grab the previous one.
5
  Requires at least: 3.3
6
  Tested up to: 4.9
7
  Requires PHP: 5.2.4
8
+ Stable tag: 0.73.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
440
 
441
  == Changelog ==
442
 
443
+ = 0.73.2 =
444
+
445
+ * Bug fix release: `[catlist categorypage="yes"]` had stopped working with WordPress 4.9. This is because the category check would compare a return value against the "Empty Term" translation key which was changed [in this commit](https://github.com/WordPress/WordPress/commit/a42b9cebdebb2809b484f4187757555f30c9ee08#diff-efd15818123d55a117706670be80c15aR749) adding periods at the end of some error messages. So it was just a matter of adding the period in the if condition. Thanks helmutka for reporting this!
446
+
447
  = 0.73.1 =
448
 
449
  * Bumped version because WordPress.org wouldn't grab the previous one.