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. git-svn-id: https://develop.svn.wordpress.org/trunk@32705 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9eafba9d15
commit
ea5ba64400
@ -354,7 +354,7 @@ var wpLink;
|
||||
}
|
||||
|
||||
link = getLink();
|
||||
text = inputs.text.val();
|
||||
text = inputs.text.val() || attrs.href;
|
||||
|
||||
if ( link ) {
|
||||
if ( text ) {
|
||||
|
Loading…
Reference in New Issue
Block a user