mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01: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() {
|
||||
wpLink.correctURL();
|
||||
|
||||
var attrs = {
|
||||
href: $.trim( inputs.url.val() )
|
||||
return {
|
||||
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) {
|
||||
|
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.8-alpha-39600';
|
||||
$wp_version = '4.8-alpha-39601';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user