mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 09:10:06 +00:00
Customize: Prevent potential cache corruption when finding a secondary changeset post by UUID.
Props dlh. Fixes #41738. git-svn-id: https://develop.svn.wordpress.org/trunk@41321 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -303,6 +303,9 @@ class Tests_WP_Customize_Manager extends WP_UnitTestCase {
|
||||
$wp_customize = new WP_Customize_Manager();
|
||||
$this->assertNull( $wp_customize->find_changeset_post_id( wp_generate_uuid4() ) );
|
||||
$this->assertEquals( $post_id, $wp_customize->find_changeset_post_id( $uuid ) );
|
||||
|
||||
// Verify that the found post ID was cached under the given UUID, not the manager's UUID.
|
||||
$this->assertNotEquals( $post_id, $wp_customize->find_changeset_post_id( $wp_customize->changeset_uuid() ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user