Version Description
- Fix issue to prevent fatal errors caused by setting the global query to null.
Download this release
Release Info
Developer | sewmyheadon |
Plugin | Posts in Page |
Version | 1.4.4 |
Comparing to | |
See all releases |
Code changes from version 1.4.3 to 1.4.4
- includes/class-page-posts.php +1 -2
- posts_in_page.php +2 -2
- readme.txt +8 -2
includes/class-page-posts.php
CHANGED
@@ -72,7 +72,6 @@ class ICPagePosts {
|
|
72 |
|
73 |
// Commandeering wp_query for pagination quirkiness.
|
74 |
$temp = $wp_query;
|
75 |
-
$wp_query = null;
|
76 |
$wp_query = apply_filters( 'posts_in_page_results', new WP_Query( $this->args ) );
|
77 |
|
78 |
$output = '';
|
@@ -89,8 +88,8 @@ class ICPagePosts {
|
|
89 |
}
|
90 |
|
91 |
// Restore wp_query.
|
92 |
-
$wp_query = null;
|
93 |
$wp_query = $temp;
|
|
|
94 |
wp_reset_query(); // phpcs:ignore WordPress.WP.DiscouragedFunctions.wp_reset_query_wp_reset_query
|
95 |
remove_filter( 'excerpt_more', array( $this, 'custom_excerpt_more' ) );
|
96 |
|
72 |
|
73 |
// Commandeering wp_query for pagination quirkiness.
|
74 |
$temp = $wp_query;
|
|
|
75 |
$wp_query = apply_filters( 'posts_in_page_results', new WP_Query( $this->args ) );
|
76 |
|
77 |
$output = '';
|
88 |
}
|
89 |
|
90 |
// Restore wp_query.
|
|
|
91 |
$wp_query = $temp;
|
92 |
+
unset( $temp );
|
93 |
wp_reset_query(); // phpcs:ignore WordPress.WP.DiscouragedFunctions.wp_reset_query_wp_reset_query
|
94 |
remove_filter( 'excerpt_more', array( $this, 'custom_excerpt_more' ) );
|
95 |
|
posts_in_page.php
CHANGED
@@ -10,8 +10,8 @@
|
|
10 |
* @wordpress-plugin
|
11 |
* Plugin Name: Posts in Page
|
12 |
* Plugin URI: https://ivycat.com/wordpress/wordpress-plugins/posts-in-page/
|
13 |
-
* Description: Easily add one or more posts to any page using simple shortcodes. Supports categories, tags, custom post types, custom taxonomies, and more.
|
14 |
-
* Version: 1.4.
|
15 |
* Author: IvyCat, Inc.
|
16 |
* Author URI: https://ivycat.com/wordpress/
|
17 |
* Text Domain: posts-in-page
|
10 |
* @wordpress-plugin
|
11 |
* Plugin Name: Posts in Page
|
12 |
* Plugin URI: https://ivycat.com/wordpress/wordpress-plugins/posts-in-page/
|
13 |
+
* Description: Easily add one or more posts to any page using simple shortcodes. Supports categories, tags, custom post types, custom taxonomies, Gutenberg, and more.
|
14 |
+
* Version: 1.4.4
|
15 |
* Author: IvyCat, Inc.
|
16 |
* Author URI: https://ivycat.com/wordpress/
|
17 |
* Text Domain: posts-in-page
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: ivycat, sewmyheadon, anvilzephyr, bradyvercher, jasonm4563, pjackson1972
|
3 |
Tags: shortcode, pages, posts, custom post types, taxonomy, terms
|
4 |
Requires at least: 3.0
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 1.4.
|
7 |
License: GPLv2 or later
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -158,6 +158,9 @@ We'd love feedback, issues, pull requests, and ideas on the [Posts in Page GitHu
|
|
158 |
|
159 |
== Changelog ==
|
160 |
|
|
|
|
|
|
|
161 |
= 1.4.3 =
|
162 |
* Fix issue with missing wrapping pagination div.
|
163 |
* Fix a few `esc_html_e` instances.
|
@@ -245,6 +248,9 @@ We'd love feedback, issues, pull requests, and ideas on the [Posts in Page GitHu
|
|
245 |
|
246 |
== Upgrade Notice ==
|
247 |
|
|
|
|
|
|
|
248 |
= 1.4.3 =
|
249 |
* Pagination bug fix and two minor i18n updates for translatable strings. Please upgrade.
|
250 |
|
2 |
Contributors: ivycat, sewmyheadon, anvilzephyr, bradyvercher, jasonm4563, pjackson1972
|
3 |
Tags: shortcode, pages, posts, custom post types, taxonomy, terms
|
4 |
Requires at least: 3.0
|
5 |
+
Tested up to: 5.2
|
6 |
+
Stable tag: 1.4.4
|
7 |
License: GPLv2 or later
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
158 |
|
159 |
== Changelog ==
|
160 |
|
161 |
+
= 1.4.4 =
|
162 |
+
* Fix issue to prevent fatal errors caused by setting the global query to null.
|
163 |
+
|
164 |
= 1.4.3 =
|
165 |
* Fix issue with missing wrapping pagination div.
|
166 |
* Fix a few `esc_html_e` instances.
|
248 |
|
249 |
== Upgrade Notice ==
|
250 |
|
251 |
+
= 1.4.4 =
|
252 |
+
* Bug fix - please upgrade for stability.
|
253 |
+
|
254 |
= 1.4.3 =
|
255 |
* Pagination bug fix and two minor i18n updates for translatable strings. Please upgrade.
|
256 |
|