Ticket #39175: 39175.3.diff
File 39175.3.diff, 1.1 KB (added by , 8 years ago) |
---|
-
wp-includes/js/customize-preview.js
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 && false !== 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 && false !== url ? injectUrlWithState( url ) : null ); 60 60 }; 61 61 } )( history.pushState ); 62 62