mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Editor: Remove target=_blank when unchecked in the link modal.
Fixes #39276 for trunk. Built from https://develop.svn.wordpress.org/trunk@39601 git-svn-id: http://core.svn.wordpress.org/trunk@39541 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4548b08236
commit
4ec102c189
@ -302,15 +302,10 @@ var wpLink;
|
|||||||
getAttrs: function() {
|
getAttrs: function() {
|
||||||
wpLink.correctURL();
|
wpLink.correctURL();
|
||||||
|
|
||||||
var attrs = {
|
return {
|
||||||
href: $.trim( inputs.url.val() )
|
href: $.trim( inputs.url.val() ),
|
||||||
|
target: inputs.openInNewTab.prop( 'checked' ) ? '_blank' : null
|
||||||
};
|
};
|
||||||
|
|
||||||
if ( inputs.openInNewTab.prop( 'checked' ) ) {
|
|
||||||
attrs.target = '_blank';
|
|
||||||
}
|
|
||||||
|
|
||||||
return attrs;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
buildHtml: function(attrs) {
|
buildHtml: function(attrs) {
|
||||||
|
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
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.8-alpha-39600';
|
$wp_version = '4.8-alpha-39601';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user