Ticket #39276: 39276.patch
File 39276.patch, 610 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/js/wplink.js
302 302 getAttrs: function() { 303 303 wpLink.correctURL(); 304 304 305 var attrs = { 306 href: $.trim( inputs.url.val() ) 305 return { 306 href: $.trim( inputs.url.val() ), 307 target: inputs.openInNewTab.prop( 'checked' ) ? '_blank' : null 307 308 }; 308 309 if ( inputs.openInNewTab.prop( 'checked' ) ) {310 attrs.target = '_blank';311 }312 313 return attrs;314 309 }, 315 310 316 311 buildHtml: function(attrs) {