Version Description
This patch resolves an issue with WordPress 6.1, which queries template parts before posts are requested. This premature query causes TSF to fail in recognizing support for Custom Post Types, preventing all meta output.
Download this release
Release Info
Developer | Cybr |
Plugin | The SEO Framework |
Version | 4.2.6 |
Comparing to | |
See all releases |
Code changes from version 4.2.5 to 4.2.6
- autodescription.php +2 -2
- inc/classes/init.class.php +4 -0
- readme.txt +6 -2
autodescription.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: The SEO Framework
|
4 |
* Plugin URI: https://theseoframework.com/
|
5 |
* Description: An automated, advanced, accessible, unbranded and extremely fast SEO solution for your WordPress website.
|
6 |
-
* Version: 4.2.
|
7 |
* Author: The SEO Framework Team
|
8 |
* Author URI: https://theseoframework.com/
|
9 |
* License: GPLv3
|
@@ -41,7 +41,7 @@ defined( 'ABSPATH' ) or die;
|
|
41 |
*
|
42 |
* @since 2.3.5
|
43 |
*/
|
44 |
-
define( 'THE_SEO_FRAMEWORK_VERSION', '4.2.
|
45 |
|
46 |
/**
|
47 |
* The plugin Database version.
|
3 |
* Plugin Name: The SEO Framework
|
4 |
* Plugin URI: https://theseoframework.com/
|
5 |
* Description: An automated, advanced, accessible, unbranded and extremely fast SEO solution for your WordPress website.
|
6 |
+
* Version: 4.2.6
|
7 |
* Author: The SEO Framework Team
|
8 |
* Author URI: https://theseoframework.com/
|
9 |
* License: GPLv3
|
41 |
*
|
42 |
* @since 2.3.5
|
43 |
*/
|
44 |
+
define( 'THE_SEO_FRAMEWORK_VERSION', '4.2.6' );
|
45 |
|
46 |
/**
|
47 |
* The plugin Database version.
|
inc/classes/init.class.php
CHANGED
@@ -1066,6 +1066,7 @@ class Init extends Query {
|
|
1066 |
* 2. Added taxonomy-supported lookups.
|
1067 |
* 3. Added WP Rest checks for the Block Editor.
|
1068 |
* @since 4.2.0 Improved supported taxonomy loop.
|
|
|
1069 |
*
|
1070 |
* @param \WP_Query $wp_query WP_Query object.
|
1071 |
* @return bool
|
@@ -1089,6 +1090,9 @@ class Init extends Query {
|
|
1089 |
return true;
|
1090 |
}
|
1091 |
|
|
|
|
|
|
|
1092 |
if ( \defined( 'REST_REQUEST' ) && REST_REQUEST ) {
|
1093 |
$referer = \wp_get_referer();
|
1094 |
if ( false !== strpos( $referer, 'post.php' ) || false !== strpos( $referer, 'post-new.php' ) ) {
|
1066 |
* 2. Added taxonomy-supported lookups.
|
1067 |
* 3. Added WP Rest checks for the Block Editor.
|
1068 |
* @since 4.2.0 Improved supported taxonomy loop.
|
1069 |
+
* @since 4.2.6 Added check for `did_action( 'wp_loaded' )`.
|
1070 |
*
|
1071 |
* @param \WP_Query $wp_query WP_Query object.
|
1072 |
* @return bool
|
1090 |
return true;
|
1091 |
}
|
1092 |
|
1093 |
+
if ( ! \did_action( 'wp_loaded' ) )
|
1094 |
+
return true;
|
1095 |
+
|
1096 |
if ( \defined( 'REST_REQUEST' ) && REST_REQUEST ) {
|
1097 |
$referer = \wp_get_referer();
|
1098 |
if ( false !== strpos( $referer, 'post.php' ) || false !== strpos( $referer, 'post-new.php' ) ) {
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: Cybr
|
|
3 |
Donate link: https://github.com/sponsors/sybrew
|
4 |
Tags: seo, xml sitemap, google search, open graph, schema.org, twitter card, performance, headless
|
5 |
Requires at least: 5.5
|
6 |
-
Tested up to: 6.
|
7 |
Requires PHP: 7.2.0
|
8 |
-
Stable tag: 4.2.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -247,6 +247,10 @@ If you wish to display breadcrumbs, then your theme should provide this. Alterna
|
|
247 |
|
248 |
== Changelog ==
|
249 |
|
|
|
|
|
|
|
|
|
250 |
= 4.2.5 =
|
251 |
|
252 |
This minor update addresses a change in WordPress 6.0 that causes taxonomy sitemaps to crash, allows paginated deindexing to supersede forced indexing, and improves image cropping by [preserving metadata](https://theseoframework.com/?p=3929).
|
3 |
Donate link: https://github.com/sponsors/sybrew
|
4 |
Tags: seo, xml sitemap, google search, open graph, schema.org, twitter card, performance, headless
|
5 |
Requires at least: 5.5
|
6 |
+
Tested up to: 6.1
|
7 |
Requires PHP: 7.2.0
|
8 |
+
Stable tag: 4.2.6
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
247 |
|
248 |
== Changelog ==
|
249 |
|
250 |
+
= 4.2.6 =
|
251 |
+
|
252 |
+
This patch resolves an issue with WordPress 6.1, which queries template parts before posts are requested. This premature query causes TSF to fail in recognizing support for Custom Post Types, [preventing all meta output](https://theseoframework.com/?p=4015).
|
253 |
+
|
254 |
= 4.2.5 =
|
255 |
|
256 |
This minor update addresses a change in WordPress 6.0 that causes taxonomy sitemaps to crash, allows paginated deindexing to supersede forced indexing, and improves image cropping by [preserving metadata](https://theseoframework.com/?p=3929).
|