mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-27 22:58:40 +02:00
Customize: Prevent potential cache corruption when finding a secondary changeset post by UUID.
Props dlh. Fixes #41738. Built from https://develop.svn.wordpress.org/trunk@41321 git-svn-id: http://core.svn.wordpress.org/trunk@41152 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a979e17e2b
commit
1afaf8c605
@ -816,7 +816,7 @@ final class WP_Customize_Manager {
|
|||||||
if ( ! empty( $changeset_post_query->posts ) ) {
|
if ( ! empty( $changeset_post_query->posts ) ) {
|
||||||
// Note: 'fields'=>'ids' is not being used in order to cache the post object as it will be needed.
|
// Note: 'fields'=>'ids' is not being used in order to cache the post object as it will be needed.
|
||||||
$changeset_post_id = $changeset_post_query->posts[0]->ID;
|
$changeset_post_id = $changeset_post_query->posts[0]->ID;
|
||||||
wp_cache_set( $this->_changeset_uuid, $changeset_post_id, $cache_group );
|
wp_cache_set( $uuid, $changeset_post_id, $cache_group );
|
||||||
return $changeset_post_id;
|
return $changeset_post_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9-alpha-41320';
|
$wp_version = '4.9-alpha-41321';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user