Changeset 39574
- Timestamp:
- 12/12/2016 02:10:30 AM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/src/wp-includes/js/customize-preview.js
r39345 r39574 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.