Skip to content

Commit

Permalink
4.4.7.1 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudbroes committed Oct 2, 2023
1 parent 4645acf commit e129c50
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
14 changes: 12 additions & 2 deletions app/Common/Traits/Helpers/WpContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -818,11 +818,21 @@ public function setWpQueryPost( $wpPost ) {
public function restoreWpQuery() {
global $wp_query, $post;
if ( is_a( $this->originalQuery, 'WP_Query' ) ) {
$wp_query = $this->deepClone( $this->originalQuery );
// Loop over all properties and replace the ones that have changed.
// We want to avoid replacing the entire object because it can cause issues with other plugins.
foreach ( $this->originalQuery as $key => $value ) {
if ( $value !== $wp_query->{$key} ) {
$wp_query->{$key} = $value;
}
}
}

if ( is_a( $this->originalPost, 'WP_Post' ) ) {
$post = $this->deepClone( $this->originalPost );
foreach ( $this->originalPost as $key => $value ) {
if ( $value !== $post->{$key} ) {
$post->{$key} = $value;
}
}
}

$this->originalQuery = null;
Expand Down
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: SEO, Google Search Console, XML Sitemap, meta description, schema, meta ti
Tested up to: 6.3.1
Requires at least: 4.9
Requires PHP: 7.0
Stable tag: 4.4.7
Stable tag: 4.4.7.1
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.txt

Expand Down Expand Up @@ -258,6 +258,10 @@ Visit <a href="http://www.wpbeginner.com/" rel="friend" title="WPBeginner">WPBeg

== Changelog ==

**New in Version 4.4.7.1**

* Fixed: Plugin conflict with Divi where the visual editor does not load.

**New in Version 4.4.7**

* Updated: Improved TruSEO Highlighter style compatibility with various popular themes.
Expand Down Expand Up @@ -618,6 +622,6 @@ Additionally, AIOSEO can also provide you with data on the most frequently used

== Upgrade Notice ==

= 4.4.7 =
= 4.4.7.1 =

This update adds major improvements and bug fixes.

0 comments on commit e129c50

Please sign in to comment.