Version Description
- Bug fix by @zymeth25: In some rare cases wp_reset_query fails to reset global $post to its initial value. This manual reset ensures the plugin leaves the main query in a clean state regardless of circumstances. Fixes https://wordpress.org/support/topic/your-plugin-has-a-crazy-bug-conflict-with-elementor/#post-10145793 and https://github.com/picandocodigo/List-Category-Posts/issues/320.
Download this release
Release Info
Developer | fernandobt |
Plugin | List category posts |
Version | 0.77.1 |
Comparing to | |
See all releases |
Code changes from version 0.77 to 0.77.1
- include/lcp-catlist.php +4 -0
- list-category-posts.php +1 -1
- readme.txt +6 -2
include/lcp-catlist.php
CHANGED
@@ -53,6 +53,8 @@ class CatList{
|
|
53 |
global $wp_query;
|
54 |
if ( isset($wp_query) ) {
|
55 |
$this->saved_wp_query = clone $wp_query;
|
|
|
|
|
56 |
}
|
57 |
}
|
58 |
|
@@ -63,6 +65,8 @@ class CatList{
|
|
63 |
global $wp_query;
|
64 |
if ( isset($this->saved_wp_query) ) {
|
65 |
$wp_query = clone $this->saved_wp_query;
|
|
|
|
|
66 |
}
|
67 |
}
|
68 |
|
53 |
global $wp_query;
|
54 |
if ( isset($wp_query) ) {
|
55 |
$this->saved_wp_query = clone $wp_query;
|
56 |
+
global $post;
|
57 |
+
$this->saved_post = $post;
|
58 |
}
|
59 |
}
|
60 |
|
65 |
global $wp_query;
|
66 |
if ( isset($this->saved_wp_query) ) {
|
67 |
$wp_query = clone $this->saved_wp_query;
|
68 |
+
global $post;
|
69 |
+
$post = $this->saved_post;
|
70 |
}
|
71 |
}
|
72 |
|
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.77
|
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.77.1
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://fernandobriano.com
|
9 |
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ 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.9.
|
7 |
Requires PHP: 5.2.4
|
8 |
-
Stable tag: 0.77
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -440,6 +440,10 @@ Template system has changed. Custom templates should be stored in WordPress them
|
|
440 |
|
441 |
== Changelog ==
|
442 |
|
|
|
|
|
|
|
|
|
443 |
= 0.77 =
|
444 |
|
445 |
* Improvements in testing by @zymeth25.
|
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.9.7
|
7 |
Requires PHP: 5.2.4
|
8 |
+
Stable tag: 0.77.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
440 |
|
441 |
== Changelog ==
|
442 |
|
443 |
+
= 0.77.1 =
|
444 |
+
|
445 |
+
* Bug fix by @zymeth25: In some rare cases wp_reset_query fails to reset global $post to its initial value. This manual reset ensures the plugin leaves the main query in a clean state regardless of circumstances. Fixes https://wordpress.org/support/topic/your-plugin-has-a-crazy-bug-conflict-with-elementor/#post-10145793 and https://github.com/picandocodigo/List-Category-Posts/issues/320.
|
446 |
+
|
447 |
= 0.77 =
|
448 |
|
449 |
* Improvements in testing by @zymeth25.
|