WordPress.org

Make WordPress Core

Changeset 37454


Ignore:
Timestamp:
05/17/2016 08:35:23 PM (4 years ago)
Author:
ocean90
Message:

TinyMCE: prevent showing the placeholder URL when adding a link and clicking more than once on the Insert Link button.

Merge of [37301] to the 4.5 branch.

Props iseulde.
Fixes #36637.

Location:
branches/4.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.5

  • branches/4.5/src/wp-includes/js/tinymce/plugins/wplink/plugin.js

    r37246 r37454  
    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.