diff --git src/wp-includes/js/customize-preview.js src/wp-includes/js/customize-preview.js
index a4cb196..42d0ba3 100644
|
|
|
|
| 49 | 49 | history.replaceState = ( function( nativeReplaceState ) { |
| 50 | 50 | return function historyReplaceState( data, title, url ) { |
| 51 | 51 | currentHistoryState = data; |
| 52 | | return nativeReplaceState.call( history, data, title, injectUrlWithState( url ) ); |
| | 52 | return nativeReplaceState.call( history, data, title, ! _.isUndefined( url ) && null !== url ? injectUrlWithState( url ) : null ); |
| 53 | 53 | }; |
| 54 | 54 | } )( history.replaceState ); |
| 55 | 55 | |
| 56 | 56 | history.pushState = ( function( nativePushState ) { |
| 57 | 57 | return function historyPushState( data, title, url ) { |
| 58 | 58 | currentHistoryState = data; |
| 59 | | return nativePushState.call( history, data, title, injectUrlWithState( url ) ); |
| | 59 | return nativePushState.call( history, data, title, ! _.isUndefined( url ) && null !== url ? injectUrlWithState( url ) : null ); |
| 60 | 60 | }; |
| 61 | 61 | } )( history.pushState ); |
| 62 | 62 | |