mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Only use a bare URL when the link text field is used.
Fixes bug that would remove images on edit, in some circumstances. fixes #33293 props azaozz Built from https://develop.svn.wordpress.org/trunk@33591 git-svn-id: http://core.svn.wordpress.org/trunk@33558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
309516a6c1
commit
d60e2eea84
@ -365,7 +365,10 @@ var wpLink;
|
||||
}
|
||||
|
||||
link = getLink();
|
||||
|
||||
if ( inputs.wrap.hasClass( 'has-text-field' ) ) {
|
||||
text = inputs.text.val() || attrs.href;
|
||||
}
|
||||
|
||||
if ( link ) {
|
||||
if ( text ) {
|
||||
|
2
wp-includes/js/wplink.min.js
vendored
2
wp-includes/js/wplink.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.3-RC2-33590';
|
||||
$wp_version = '4.3-RC2-33591';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user