Version Description
- Fixes bug in LcpParameters.
Download this release
Release Info
Developer | fernandobt |
Plugin | List category posts |
Version | 0.54.1 |
Comparing to | |
See all releases |
Code changes from version 0.54 to 0.54.1
- include/lcp-options.php +1 -1
- include/lcp-parameters.php +3 -1
- list_cat_posts.php +1 -1
- readme.txt +4 -1
include/lcp-options.php
CHANGED
@@ -84,4 +84,4 @@ function list_category_posts_options() {
|
|
84 |
</em>
|
85 |
</p>
|
86 |
</div>
|
87 |
-
<?php }
|
84 |
</em>
|
85 |
</p>
|
86 |
</div>
|
87 |
+
<?php }
|
include/lcp-parameters.php
CHANGED
@@ -6,6 +6,7 @@ class LcpParameters{
|
|
6 |
private static $instance = null;
|
7 |
private $starting_with = null;
|
8 |
private $utils;
|
|
|
9 |
|
10 |
public static function get_instance(){
|
11 |
if( !isset( self::$instance ) ){
|
@@ -15,6 +16,7 @@ class LcpParameters{
|
|
15 |
}
|
16 |
|
17 |
public function get_query_params($params){
|
|
|
18 |
# Essential parameters:
|
19 |
$args = array(
|
20 |
'numberposts' => $params['numberposts'],
|
@@ -139,7 +141,7 @@ class LcpParameters{
|
|
139 |
}
|
140 |
|
141 |
private function lcp_excluded_tags($args){
|
142 |
-
$excluded_tags = explode(",", $params['exclude_tags']);
|
143 |
$tag_ids = array();
|
144 |
foreach ( $excluded_tags as $excluded){
|
145 |
$tag_ids[] = get_term_by('slug', $excluded, 'post_tag')->term_id;
|
6 |
private static $instance = null;
|
7 |
private $starting_with = null;
|
8 |
private $utils;
|
9 |
+
private $params;
|
10 |
|
11 |
public static function get_instance(){
|
12 |
if( !isset( self::$instance ) ){
|
16 |
}
|
17 |
|
18 |
public function get_query_params($params){
|
19 |
+
$this->params = $params;
|
20 |
# Essential parameters:
|
21 |
$args = array(
|
22 |
'numberposts' => $params['numberposts'],
|
141 |
}
|
142 |
|
143 |
private function lcp_excluded_tags($args){
|
144 |
+
$excluded_tags = explode(",", $this->params['exclude_tags']);
|
145 |
$tag_ids = array();
|
146 |
foreach ( $excluded_tags as $excluded){
|
147 |
$tag_ids[] = get_term_by('slug', $excluded, 'post_tag')->term_id;
|
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.54
|
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.54.1
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://fernandobriano.com
|
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: 4.1
|
7 |
-
Stable tag: 0.54
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -435,6 +435,9 @@ Template system has changed. Custom templates should be stored in WordPress them
|
|
435 |
|
436 |
== Changelog ==
|
437 |
|
|
|
|
|
|
|
438 |
= 0.54 =
|
439 |
* Adds http/https check for pagination links.
|
440 |
* Fixes `post_status` and `post_type` parameters for using multiple post statuses and types.
|
4 |
Tags: list, categories, posts, cms
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.1
|
7 |
+
Stable tag: 0.54.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
435 |
|
436 |
== Changelog ==
|
437 |
|
438 |
+
= 0.54.1 =
|
439 |
+
* Fixes bug in LcpParameters.
|
440 |
+
|
441 |
= 0.54 =
|
442 |
* Adds http/https check for pagination links.
|
443 |
* Fixes `post_status` and `post_type` parameters for using multiple post statuses and types.
|