Editor: Remove target=_blank when unchecked in the link modal.
Merges [39601] to the 4.7 branch. Fixes #39276. git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39602 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
652e264ef7
commit
c30742ceaf
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user