Customize: Remove selective refresh error message from appearing inline within the preview.

The error message will still be available in the developer console.

Removes part of [36586].
See #27355.
Fixes #36164.

Built from https://develop.svn.wordpress.org/trunk@36890


git-svn-id: http://core.svn.wordpress.org/trunk@36857 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter 2016-03-09 04:37:28 +00:00
parent e11fd98ec6
commit d27ae61355
6 changed files with 3 additions and 21 deletions

View File

@ -10,12 +10,3 @@
-webkit-box-shadow: none;
box-shadow: none;
}
.customize-render-content-error {
outline: solid 1px red;
}
.customize-render-content-error-message {
display: block;
padding: 1em;
background-color: #FFCCCC;
}

View File

@ -1 +1 @@
.customize-partial-refreshing{opacity:.25;-webkit-transition:opacity .25s;transition:opacity .25s;cursor:progress}.customize-partial-refreshing.widget-customizer-highlighted-widget{-webkit-box-shadow:none;box-shadow:none}.customize-render-content-error{outline:red solid 1px}.customize-render-content-error-message{display:block;padding:1em;background-color:#FCC}
.customize-partial-refreshing{opacity:.25;-webkit-transition:opacity .25s;transition:opacity .25s;cursor:progress}.customize-partial-refreshing.widget-customizer-highlighted-widget{-webkit-box-shadow:none;box-shadow:none}

View File

@ -182,8 +182,6 @@ final class WP_Customize_Selective_Refresh {
'renderQueryVar' => self::RENDER_QUERY_VAR,
'l10n' => array(
'shiftClickToEdit' => __( 'Shift-click to edit this element.' ),
/* translators: %s: message from JS error */
'errorMessageTpl' => __( 'Script error: %s' ),
/* translators: %s: document.write() */
'badDocumentWrite' => sprintf( __( '%s is forbidden' ), 'document.write()' ),
),

View File

@ -314,13 +314,6 @@ wp.customize.selectiveRefresh = ( function( $, api ) {
if ( 'undefined' !== typeof console && console.error ) {
console.error( partial.id, error );
}
placement.container.addClass( 'customize-render-content-error' );
errorMessageElement = placement.container.find( '.customize-render-content-error-message:first' );
if ( ! errorMessageElement.length ) {
errorMessageElement = $( '<span class="customize-render-content-error-message"><span>' );
placement.container.append( errorMessageElement );
}
errorMessageElement.text( self.data.l10n.errorMessageTpl.replace( '%s', error.message ) );
}
/* jshint ignore:start */
document.write = self.orginalDocumentWrite;

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-beta2-36889';
$wp_version = '4.5-beta2-36890';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.