From 457f5ac6a0226e78b9b03ee07e6ea1c565d1a99f Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Fri, 22 Apr 2016 19:10:18 +0000 Subject: [PATCH] TinyMCE: prevent showing the placeholder URL when adding a link and clicking more than once on the Insert Link button. Props iseulde. Fixes #36637 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@37301 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/tinymce/plugins/wplink/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/js/tinymce/plugins/wplink/plugin.js b/src/wp-includes/js/tinymce/plugins/wplink/plugin.js index 715a0c278a..d98c0da694 100644 --- a/src/wp-includes/js/tinymce/plugins/wplink/plugin.js +++ b/src/wp-includes/js/tinymce/plugins/wplink/plugin.js @@ -488,7 +488,7 @@ edit = $linkNode.attr( 'data-wplink-edit' ); if ( href === '_wp_link_placeholder' || edit ) { - if ( edit && ! inputInstance.getURL() ) { + if ( href !== '_wp_link_placeholder' && ! inputInstance.getURL() ) { inputInstance.setURL( href ); }