Make WordPress Core

Changeset 39505 for branches/4.7


Ignore:
Timestamp:
12/05/2016 04:56:50 PM (8 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.
Merges [39504] onto 4.7 branch.
Fixes #39081 for 4.7.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/src/wp-admin/js/customize-controls.js

    r39345 r39505  
    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.