diff --git src/wp-admin/js/customize-controls.js src/wp-admin/js/customize-controls.js
index e038dcc8fa..d340a1ba04 100644
|
|
|
4762 | 4762 | */ |
4763 | 4763 | populateChangesetUuidParam = function( isIncluded ) { |
4764 | 4764 | var urlParser, queryParams; |
| 4765 | |
| 4766 | // Abort on IE9 which doesn't support history management. |
| 4767 | if ( ! history.replaceState ) { |
| 4768 | return; |
| 4769 | } |
| 4770 | |
4765 | 4771 | urlParser = document.createElement( 'a' ); |
4766 | 4772 | urlParser.href = location.href; |
4767 | 4773 | queryParams = api.utils.parseQueryString( urlParser.search.substr( 1 ) ); |
… |
… |
|
4780 | 4786 | history.replaceState( {}, document.title, urlParser.href ); |
4781 | 4787 | }; |
4782 | 4788 | |
4783 | | if ( history.replaceState ) { |
4784 | | changesetStatus.bind( function( newStatus ) { |
4785 | | populateChangesetUuidParam( '' !== newStatus && 'publish' !== newStatus ); |
4786 | | } ); |
4787 | | } |
| 4789 | changesetStatus.bind( function( newStatus ) { |
| 4790 | populateChangesetUuidParam( '' !== newStatus && 'publish' !== newStatus ); |
| 4791 | } ); |
4788 | 4792 | |
4789 | 4793 | // Expose states to the API. |
4790 | 4794 | api.state = state; |