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.

Built from https://develop.svn.wordpress.org/trunk@32705


git-svn-id: http://core.svn.wordpress.org/trunk@32675 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Ella Iseulde Van Dorpe 2015-06-07 21:11:24 +00:00
parent 8acda26129
commit c12af009c2
3 changed files with 3 additions and 3 deletions

View File

@ -354,7 +354,7 @@ var wpLink;
}
link = getLink();
text = inputs.text.val();
text = inputs.text.val() || attrs.href;
if ( link ) {
if ( text ) {

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-alpha-32704';
$wp_version = '4.3-alpha-32705';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.