Version Description
- Tested with WordPress 4.2
- Sophist's fix: Check for multi-byte functions installed and use ascii functions if not.
Download this release
Release Info
Developer | fernandobt |
Plugin | List category posts |
Version | 0.59.2 |
Comparing to | |
See all releases |
Code changes from version 0.59.1 to 0.59.2
- include/lcp-catlistdisplayer.php +8 -2
- list_cat_posts.php +1 -1
- readme.txt +7 -2
include/lcp-catlistdisplayer.php
CHANGED
@@ -400,8 +400,14 @@ class CatListDisplayer {
|
|
400 |
|
401 |
if ( !empty($this->params['title_limit']) && $this->params['title_limit'] !== "0" ):
|
402 |
$title_limit = intval($this->params['title_limit']);
|
403 |
-
if( mb_strlen
|
404 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
405 |
endif;
|
406 |
endif;
|
407 |
|
400 |
|
401 |
if ( !empty($this->params['title_limit']) && $this->params['title_limit'] !== "0" ):
|
402 |
$title_limit = intval($this->params['title_limit']);
|
403 |
+
if( function_exists('mb_strlen') && function_exists('mb_substr') ):
|
404 |
+
if( mb_strlen($lcp_post_title) > $title_limit ):
|
405 |
+
$lcp_post_title = mb_substr($lcp_post_title, 0, $title_limit) . "…";
|
406 |
+
endif;
|
407 |
+
else:
|
408 |
+
if( strlen($lcp_post_title) > $title_limit ):
|
409 |
+
$lcp_post_title = substr($lcp_post_title, 0, $title_limit) . "…";
|
410 |
+
endif;
|
411 |
endif;
|
412 |
endif;
|
413 |
|
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 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.59.
|
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.59.2
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://fernandobriano.com
|
9 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: fernandobt
|
|
3 |
Donate Link: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/#support
|
4 |
Tags: list, categories, posts, cms
|
5 |
Requires at least: 3.3
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 0.59.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -451,6 +451,11 @@ Template system has changed. Custom templates should be stored in WordPress them
|
|
451 |
|
452 |
== Changelog ==
|
453 |
|
|
|
|
|
|
|
|
|
|
|
454 |
= 0.59.1 =
|
455 |
|
456 |
* Fix some errors
|
3 |
Donate Link: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/#support
|
4 |
Tags: list, categories, posts, cms
|
5 |
Requires at least: 3.3
|
6 |
+
Tested up to: 4.2
|
7 |
+
Stable tag: 0.59.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
451 |
|
452 |
== Changelog ==
|
453 |
|
454 |
+
= 0.59.2 =
|
455 |
+
|
456 |
+
* Tested with WordPress 4.2
|
457 |
+
* Sophist's fix: Check for multi-byte functions installed and use ascii functions if not.
|
458 |
+
|
459 |
= 0.59.1 =
|
460 |
|
461 |
* Fix some errors
|