List category posts - Version 0.44.1

Version Description

  • Removes warning when using current tag in pages
    • Small fix on Readme
Download this release

Release Info

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

Code changes from version 0.44 to 0.44.1

Files changed (3) hide show
  1. include/CatList.php +4 -2
  2. list_cat_posts.php +1 -1
  3. readme.txt +6 -2
include/CatList.php CHANGED
@@ -238,8 +238,10 @@ class CatList{
238
  public function lcp_get_current_tags(){
239
  $tags = get_the_tags();
240
  $tag_ids = array();
241
- foreach ($tags as $tag_id => $tag) {
242
- array_push($tag_ids, $tag_id);
 
 
243
  }
244
  return $tag_ids;
245
  }
238
  public function lcp_get_current_tags(){
239
  $tags = get_the_tags();
240
  $tag_ids = array();
241
+ if( !empty($tags) ){
242
+ foreach ($tags as $tag_id => $tag) {
243
+ array_push($tag_ids, $tag_id);
244
+ }
245
  }
246
  return $tag_ids;
247
  }
list_cat_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 from a category into 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, and the number of posts to display. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].
6
- Version: 0.44
7
  Author: Fernando Briano
8
  Author URI: http://picandocodigo.net/
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 from a category into 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, and the number of posts to display. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].
6
+ Version: 0.44.1
7
  Author: Fernando Briano
8
  Author URI: http://picandocodigo.net/
9
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate Link: http://picandocodigo.net/programacion/wordpress/list-category-posts
4
  Tags: list, categories, posts, cms
5
  Requires at least: 3.3
6
  Tested up to: 3.8.1
7
- Stable tag: 0.44
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -130,7 +130,7 @@ update the plugin.
130
 
131
  * **tags** - Tag support, you can display posts from a certain tag.
132
 
133
- * **currenttags* - Display posts from the current post's tags.
134
 
135
  * **exclude_tags** - Exclude posts from one or more tags: `[catlist tags="videogames" exclude_tags="sega,sony"]`
136
 
@@ -402,6 +402,10 @@ Template system has changed. Custom templates should be stored in WordPress them
402
 
403
  == Changelog ==
404
 
 
 
 
 
405
  = 0.44 =
406
  * Adds the feature to get an author's posts
407
  * Adds show posts from current post's tags.
4
  Tags: list, categories, posts, cms
5
  Requires at least: 3.3
6
  Tested up to: 3.8.1
7
+ Stable tag: 0.44.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
130
 
131
  * **tags** - Tag support, you can display posts from a certain tag.
132
 
133
+ * **currenttags** - Display posts from the current post's tags.
134
 
135
  * **exclude_tags** - Exclude posts from one or more tags: `[catlist tags="videogames" exclude_tags="sega,sony"]`
136
 
402
 
403
  == Changelog ==
404
 
405
+ = 0.44.1 =
406
+ * Removes warning when using current tag in pages
407
+ * Small fix on Readme
408
+
409
  = 0.44 =
410
  * Adds the feature to get an author's posts
411
  * Adds show posts from current post's tags.