Version Description
- Fixes issue with catlink.
- Fixes issue with templates named "default"
Download this release
Release Info
Developer | fernandobt |
Plugin | List category posts |
Version | 0.50.1 |
Comparing to | |
See all releases |
Code changes from version 0.50 to 0.50.1
- .gitignore +0 -1
- include/CatList.php +1 -2
- include/CatListDisplayer.php +1 -2
- list_cat_posts.php +1 -1
- readme.txt +6 -1
.gitignore
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.project
|
|
include/CatList.php
CHANGED
@@ -317,8 +317,7 @@ class CatList{
|
|
317 |
* Load category name and link to the category:
|
318 |
*/
|
319 |
public function get_category_link(){
|
320 |
-
if( $this->
|
321 |
-
($this->params['catlink'] == 'yes' ||
|
322 |
$this->params['catname'] == 'yes') &&
|
323 |
$this->lcp_category_id != 0):
|
324 |
// Check for one id or several:
|
317 |
* Load category name and link to the category:
|
318 |
*/
|
319 |
public function get_category_link(){
|
320 |
+
if( ($this->params['catlink'] == 'yes' ||
|
|
|
321 |
$this->params['catname'] == 'yes') &&
|
322 |
$this->lcp_category_id != 0):
|
323 |
// Check for one id or several:
|
include/CatListDisplayer.php
CHANGED
@@ -29,8 +29,7 @@ class CatListDisplayer {
|
|
29 |
private function define_template(){
|
30 |
// Check if we got a template param:
|
31 |
if (isset($this->params['template']) &&
|
32 |
-
!empty($this->params['template'])
|
33 |
-
$this->params['template'] != 'default'){
|
34 |
// The default values for ul, ol and div:
|
35 |
if (preg_match('/^ul$|^div$|^ol$/i', $this->params['template'], $matches)){
|
36 |
$this->build_output($matches[0]);
|
29 |
private function define_template(){
|
30 |
// Check if we got a template param:
|
31 |
if (isset($this->params['template']) &&
|
32 |
+
!empty($this->params['template'])){
|
|
|
33 |
// The default values for ul, ol and div:
|
34 |
if (preg_match('/^ul$|^div$|^ol$/i', $this->params['template'], $matches)){
|
35 |
$this->build_output($matches[0]);
|
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, 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.50
|
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 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, 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.50.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.9.1
|
7 |
-
Stable tag: 0.50
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -422,6 +422,11 @@ Template system has changed. Custom templates should be stored in WordPress them
|
|
422 |
|
423 |
== Changelog ==
|
424 |
|
|
|
|
|
|
|
|
|
|
|
425 |
= 0.50 =
|
426 |
|
427 |
* Adds Thai translation by [itpcc](https://github.com/itpcc).
|
4 |
Tags: list, categories, posts, cms
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 3.9.1
|
7 |
+
Stable tag: 0.50.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
422 |
|
423 |
== Changelog ==
|
424 |
|
425 |
+
= 0.50.1 =
|
426 |
+
|
427 |
+
* Fixes issue with catlink.
|
428 |
+
* Fixes issue with templates named "default"
|
429 |
+
|
430 |
= 0.50 =
|
431 |
|
432 |
* Adds Thai translation by [itpcc](https://github.com/itpcc).
|