diff --git a/wp-admin/js/widgets/custom-html-widgets.js b/wp-admin/js/widgets/custom-html-widgets.js
index 5469755870..ecaf5066bc 100644
a
|
b
|
wp.customHtmlWidgets = ( function( $ ) { |
108 | 108 | * to prevent the editor's contents from getting sanitized as soon as a user removes focus from |
109 | 109 | * the editor. This is particularly important for users who cannot unfiltered_html. |
110 | 110 | */ |
111 | | control.contentUpdateBypassed = control.fields.content.is( document.activeElement ) || control.editor && control.editor.codemirror.state.focused || 0 !== control.currentErrorAnnotations; |
| 111 | control.contentUpdateBypassed = control.fields.content.is( document.activeElement ) || control.editor && control.editor.codemirror.state.focused || 0 !== control.currentErrorAnnotations.length; |
112 | 112 | if ( ! control.contentUpdateBypassed ) { |
113 | 113 | syncInput = control.syncContainer.find( '.sync-input.content' ); |
114 | 114 | control.fields.content.val( syncInput.val() ).trigger( 'change' ); |