List category posts - Version 0.46.1

Version Description

  • Fixes quotes bug on title tag.
    • Only show ellipsis when title.size > title_limit when using the title_limit param.
Download this release

Release Info

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

Code changes from version 0.46 to 0.46.1

include/CatListDisplayer.php CHANGED
@@ -342,8 +342,10 @@ class CatListDisplayer {
342
  $lcp_post_title = apply_filters('the_title', $single->post_title, $single->ID);
343
 
344
  if ( !empty($this->params['title_limit']) && $this->params['title_limit'] != "0" ):
345
- $lcp_post_title = substr($lcp_post_title, 0, intval($this->params['title_limit'])) .
346
- "…";
 
 
347
  endif;
348
 
349
  $info.= '" title="' . wptexturize($single->post_title) . '"';
@@ -367,9 +369,9 @@ class CatListDisplayer {
367
  if (!empty($this->params['title_tag'])){
368
  $pre = "<" . $this->params['title_tag'];
369
  if (!empty($this->params['title_class'])){
370
- $pre .= ' class="' . $this->params['title_class'];
371
  }
372
- $pre .= '">';
373
  $post = "</" . $this->params['title_tag'] . ">";
374
  $info = $pre . $info . $post;
375
  }
342
  $lcp_post_title = apply_filters('the_title', $single->post_title, $single->ID);
343
 
344
  if ( !empty($this->params['title_limit']) && $this->params['title_limit'] != "0" ):
345
+ $lcp_post_title = substr($lcp_post_title, 0, intval($this->params['title_limit']));
346
+ if( strlen($lcp_post_title) >= intval($this->params['title_limit']) ):
347
+ $lcp_post_title .= "&hellip;";
348
+ endif;
349
  endif;
350
 
351
  $info.= '" title="' . wptexturize($single->post_title) . '"';
369
  if (!empty($this->params['title_tag'])){
370
  $pre = "<" . $this->params['title_tag'];
371
  if (!empty($this->params['title_class'])){
372
+ $pre .= ' class="' . $this->params['title_class'] . '"';
373
  }
374
+ $pre .= '>';
375
  $post = "</" . $this->params['title_tag'] . ">";
376
  $info = $pre . $info . $post;
377
  }
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.46
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.46.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.46
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -433,6 +433,11 @@ Template system has changed. Custom templates should be stored in WordPress them
433
 
434
  == Changelog ==
435
 
 
 
 
 
 
436
  = 0.46 =
437
  * Adds "the_excerpt" filter to excerpt to improve compatibility with
438
  the [Jetpack](http://wordpress.org/plugins/jetpack/) plugin.
4
  Tags: list, categories, posts, cms
5
  Requires at least: 3.3
6
  Tested up to: 3.8.1
7
+ Stable tag: 0.46.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
433
 
434
  == Changelog ==
435
 
436
+ = 0.46.1 =
437
+ * Fixes quotes bug on title tag.
438
+ * Only show ellipsis when title.size > title_limit when using the
439
+ title_limit param.
440
+
441
  = 0.46 =
442
  * Adds "the_excerpt" filter to excerpt to improve compatibility with
443
  the [Jetpack](http://wordpress.org/plugins/jetpack/) plugin.