Make WordPress Core


Ignore:
Timestamp:
08/29/2017 04:09:57 AM (7 years ago)
Author:
westonruter
Message:

Customize: Prevent potential cache corruption when finding a secondary changeset post by UUID.

Props dlh.
Fixes #41738.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r41289 r41321  
    817817            // Note: 'fields'=>'ids' is not being used in order to cache the post object as it will be needed.
    818818            $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 );
    820820            return $changeset_post_id;
    821821        }
Note: See TracChangeset for help on using the changeset viewer.