Make WordPress Core

Changeset 37301


Ignore:
Timestamp:
04/22/2016 07:10:18 PM (8 years ago)
Author:
azaozz
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/plugins/wplink/plugin.js

    r37228 r37301  
    489489
    490490                if ( href === '_wp_link_placeholder' || edit ) {
    491                     if ( edit && ! inputInstance.getURL() ) {
     491                    if ( href !== '_wp_link_placeholder' && ! inputInstance.getURL() ) {
    492492                        inputInstance.setURL( href );
    493493                    }
Note: See TracChangeset for help on using the changeset viewer.