Changeset 39547
- Timestamp:
- 12/09/2016 01:58:18 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/customize-preview.js
r39345 r39547 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, 'string' === typeof url && url.length > 0 ? injectUrlWithState( url ) : url ); 53 53 }; 54 54 } )( history.replaceState ); … … 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, 'string' === typeof url && url.length > 0 ? injectUrlWithState( url ) : url ); 60 60 }; 61 61 } )( history.pushState );
Note: See TracChangeset
for help on using the changeset viewer.