WordPress.org

Make WordPress Core

Ticket #40658: 40658.1.diff

File 40658.1.diff, 615 bytes (added by westonruter, 3 years ago)
  • src/wp-includes/js/customize-selective-refresh.js

    diff --git src/wp-includes/js/customize-selective-refresh.js src/wp-includes/js/customize-selective-refresh.js
    index ee96d295df..900cc647ea 100644
    wp.customize.selectiveRefresh = ( function( $, api ) { 
    418418                        /* jshint ignore:start */
    419419                        self.orginalDocumentWrite = document.write;
    420420                        document.write = function() {
    421                                 throw new Error( self.data.l10n.badDocumentWrite );
     421                                partial.fallback( new Error( 'document_write' ), [ placement ] );
    422422                        };
    423423                        /* jshint ignore:end */
    424424                        try {