TinyMCE: fix cases where an additional empty link is created while updating an image with a link.
Props spocke. Fixes #41259. Built from https://develop.svn.wordpress.org/trunk@41319 git-svn-id: http://core.svn.wordpress.org/trunk@41150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
98995d46d1
commit
c56801657a
|
@ -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
|
||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.9-alpha-41318';
|
||||
$wp_version = '4.9-alpha-41319';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue