WordPress.org

Make WordPress Core

Ticket #39175: customize-preview.diff

File customize-preview.diff, 602 bytes (added by Christian1012, 3 years ago)

customize-preview-patch001.diff

  • wp-includes/js/customize-preview.js

     
    3131                injectUrlWithState = function( url ) {
    3232                        var urlParser, oldQueryParams, newQueryParams;
    3333                        urlParser = document.createElement( 'a' );
    34                         urlParser.href = url;
     34                        urlParser.href = url || '';
    3535                        oldQueryParams = api.utils.parseQueryString( location.search.substr( 1 ) );
    3636                        newQueryParams = api.utils.parseQueryString( urlParser.search.substr( 1 ) );
    3737