WordPress.org

Make WordPress Core

Ticket #41259: 41259.patch

File 41259.patch, 535 bytes (added by azaozz, 4 years ago)
  • src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js

     
    331331        }
    332332
    333333        function hasTextContent( node ) {
    334                 return node && !! ( node.textContent || node.innerText );
     334                return node && !! ( node.textContent || node.innerText ).replace( /\ufeff/g, '' );
    335335        }
    336336
    337337        // Verify HTML in captions