Changeset 41321
- Timestamp:
- 08/29/2017 04:09:57 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r41289 r41321 817 817 // Note: 'fields'=>'ids' is not being used in order to cache the post object as it will be needed. 818 818 $changeset_post_id = $changeset_post_query->posts[0]->ID; 819 wp_cache_set( $ this->_changeset_uuid, $changeset_post_id, $cache_group );819 wp_cache_set( $uuid, $changeset_post_id, $cache_group ); 820 820 return $changeset_post_id; 821 821 } -
trunk/tests/phpunit/tests/customize/manager.php
r41293 r41321 304 304 $this->assertNull( $wp_customize->find_changeset_post_id( wp_generate_uuid4() ) ); 305 305 $this->assertEquals( $post_id, $wp_customize->find_changeset_post_id( $uuid ) ); 306 307 // Verify that the found post ID was cached under the given UUID, not the manager's UUID. 308 $this->assertNotEquals( $post_id, $wp_customize->find_changeset_post_id( $wp_customize->changeset_uuid() ) ); 306 309 } 307 310
Note: See TracChangeset
for help on using the changeset viewer.