Make WordPress Core

Ticket #32323: 32323.2.diff

File 32323.2.diff, 395 bytes (added by bcole808, 8 years ago)

Alternate version which changes one line

  • src/wp-includes/js/wplink.js

     
    354354                        }
    355355
    356356                        link = getLink();
    357                         text = inputs.text.val();
     357                        text = ( '' === inputs.text.val() ) ? attrs.href : inputs.text.val();
    358358
    359359                        if ( link ) {
    360360                                if ( text ) {