Make WordPress Core

Changeset 39504


Ignore:
Timestamp:
12/05/2016 04:55:29 PM (5 years ago)
Author:
westonruter
Message:

Customize: Ensure changeset_uuid query param is removed from the customize.php window's location once a changeset has been published (committed) with starter content.

Props westonruter, dlh for testing.
See #30937.
Fixes #39081.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-controls.js

    r39345 r39504  
    47474747
    47484748            if ( history.replaceState ) {
    4749                 saved.bind( function( isSaved ) {
    4750                     if ( ! isSaved ) {
    4751                         populateChangesetUuidParam( true );
    4752                     }
    4753                 } );
    47544749                changesetStatus.bind( function( newStatus ) {
    4755                     populateChangesetUuidParam( '' !== newStatus );
     4750                    populateChangesetUuidParam( '' !== newStatus && 'publish' !== newStatus );
    47564751                } );
    47574752            }
Note: See TracChangeset for help on using the changeset viewer.