From 639f5228c3dc0f7eb978bf271fd3e01c0c04c56c Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Wed, 18 Mar 2015 20:52:35 +0000 Subject: [PATCH] TinyMCE: small cleanup for stripping of tags from pasted URLs. See #31158. git-svn-id: https://develop.svn.wordpress.org/trunk@31819 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/tinymce/plugins/wpview/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/js/tinymce/plugins/wpview/plugin.js b/src/wp-includes/js/tinymce/plugins/wpview/plugin.js index be7c9dbea7..95128c7856 100644 --- a/src/wp-includes/js/tinymce/plugins/wpview/plugin.js +++ b/src/wp-includes/js/tinymce/plugins/wpview/plugin.js @@ -194,7 +194,7 @@ tinymce.PluginManager.add( 'wpview', function( editor ) { } } ); - if ( node.nodeName !== 'P' || trim( node.textContent ) || trim( node.innerText ) ) { + if ( node.nodeName !== 'P' || trim( node.textContent || node.innerText ) ) { return; } }