diff --git a/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js b/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js index fc39aba6b9..9ffaba102a 100644 --- a/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js +++ b/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js @@ -331,7 +331,7 @@ tinymce.PluginManager.add( 'wpeditimage', function( editor ) { } function hasTextContent( node ) { - return node && !! ( node.textContent || node.innerText ); + return node && !! ( node.textContent || node.innerText ).replace( /\ufeff/g, '' ); } // Verify HTML in captions