Make WordPress Core

Changeset 32705


Ignore:
Timestamp:
06/07/2015 09:10:17 PM (9 years ago)
Author:
iseulde
Message:

Editor: link modal: use link as fallback for text

If there is no link text provided, use the link as the text. This is better than silently failing.

Props bcole808.
Fixes #32323.

File:
1 edited

Legend:

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

    r32593 r32705  
    355355
    356356            link = getLink();
    357             text = inputs.text.val();
     357            text = inputs.text.val() || attrs.href;
    358358
    359359            if ( link ) {
Note: See TracChangeset for help on using the changeset viewer.