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:
Ella Iseulde Van Dorpe 2016-12-14 20:30:44 +00:00
parent 4548b08236
commit 4ec102c189
3 changed files with 5 additions and 10 deletions

View File

@ -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) {

File diff suppressed because one or more lines are too long

View File

@ -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.