Version Description
- Attempted fix of a compatibility issue with some versions of PHP 7.4
Download this release
Release Info
Developer | fernandobt |
Plugin | List category posts |
Version | 0.85.1 |
Comparing to | |
See all releases |
Code changes from version 0.85 to 0.85.1
- include/lcp-catlist.php +1 -1
- include/lcp-catlistdisplayer.php +5 -5
- include/lcp-widget.php +0 -1
- list-category-posts.php +1 -1
- readme.txt +5 -1
include/lcp-catlist.php
CHANGED
@@ -174,7 +174,7 @@ class CatList{
|
|
174 |
if ($this->params['catlink'] == 'yes') {
|
175 |
$cat_string = $this->wrapper->to_html(
|
176 |
'a',
|
177 |
-
['href' => $cat_link
|
178 |
$cat_string . $this->get_category_count()
|
179 |
);
|
180 |
}
|
174 |
if ($this->params['catlink'] == 'yes') {
|
175 |
$cat_string = $this->wrapper->to_html(
|
176 |
'a',
|
177 |
+
['href' => $cat_link],
|
178 |
$cat_string . $this->get_category_count()
|
179 |
);
|
180 |
}
|
include/lcp-catlistdisplayer.php
CHANGED
@@ -60,19 +60,19 @@ class CatListDisplayer {
|
|
60 |
return '</' . $this->templater->outer_tag . '>';
|
61 |
}
|
62 |
|
63 |
-
|
64 |
return $info = $this->content_getter('morelink', null, $tag, $css_class);
|
65 |
}
|
66 |
|
67 |
-
|
68 |
return $this->content_getter('catlink', null, $tag, $css_class);
|
69 |
}
|
70 |
|
71 |
-
|
72 |
return $this->content_getter('conditional_title', null, $tag, $css_class);
|
73 |
}
|
74 |
|
75 |
-
|
76 |
return $this->catlist->get_pagination();
|
77 |
}
|
78 |
|
@@ -84,7 +84,7 @@ class CatListDisplayer {
|
|
84 |
return $this->content_getter('category_description', null, $tag, $css_class);
|
85 |
}
|
86 |
|
87 |
-
|
88 |
return $this->catlist->get_no_posts_text();
|
89 |
}
|
90 |
|
60 |
return '</' . $this->templater->outer_tag . '>';
|
61 |
}
|
62 |
|
63 |
+
public function get_morelink($tag = null, $css_class = null){
|
64 |
return $info = $this->content_getter('morelink', null, $tag, $css_class);
|
65 |
}
|
66 |
|
67 |
+
public function get_category_link($tag = 'strong', $css_class = null){
|
68 |
return $this->content_getter('catlink', null, $tag, $css_class);
|
69 |
}
|
70 |
|
71 |
+
public function get_conditional_title($tag = 'h3', $css_class = null){
|
72 |
return $this->content_getter('conditional_title', null, $tag, $css_class);
|
73 |
}
|
74 |
|
75 |
+
public function get_pagination(){
|
76 |
return $this->catlist->get_pagination();
|
77 |
}
|
78 |
|
84 |
return $this->content_getter('category_description', null, $tag, $css_class);
|
85 |
}
|
86 |
|
87 |
+
public function get_no_posts_text() {
|
88 |
return $this->catlist->get_no_posts_text();
|
89 |
}
|
90 |
|
include/lcp-widget.php
CHANGED
@@ -3,7 +3,6 @@
|
|
3 |
* List Category Posts sidebar widget.
|
4 |
* @author fernando@picandocodigo.net
|
5 |
*/
|
6 |
-
require_once 'lcp-catlistdisplayer.php';
|
7 |
|
8 |
class ListCategoryPostsWidget extends WP_Widget{
|
9 |
|
3 |
* List Category Posts sidebar widget.
|
4 |
* @author fernando@picandocodigo.net
|
5 |
*/
|
|
|
6 |
|
7 |
class ListCategoryPostsWidget extends WP_Widget{
|
8 |
|
list-category-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.85
|
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.85.1
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://fernandobriano.com
|
9 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: list, categories, posts, cms
|
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 5.8
|
7 |
Requires PHP: 5.4
|
8 |
-
Stable tag: 0.85
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -237,6 +237,10 @@ Template system has changed. Custom templates should be stored in WordPress them
|
|
237 |
|
238 |
== Changelog ==
|
239 |
|
|
|
|
|
|
|
|
|
240 |
= 0.85 =
|
241 |
|
242 |
* **New feature**: Support for custom field data types for `customfield_orderby`, use `customfield_orderby_type`. Thanks @vosykapavel!
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 5.8
|
7 |
Requires PHP: 5.4
|
8 |
+
Stable tag: 0.85.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
237 |
|
238 |
== Changelog ==
|
239 |
|
240 |
+
= 0.85.1 =
|
241 |
+
|
242 |
+
* Attempted fix of a compatibility issue with some versions of PHP 7.4
|
243 |
+
|
244 |
= 0.85 =
|
245 |
|
246 |
* **New feature**: Support for custom field data types for `customfield_orderby`, use `customfield_orderby_type`. Thanks @vosykapavel!
|