diff --git a/src/wp-includes/js/wplink.js b/src/wp-includes/js/wplink.js index c798547f27..8cd5b158db 100644 --- a/src/wp-includes/js/wplink.js +++ b/src/wp-includes/js/wplink.js @@ -180,11 +180,14 @@ var wpLink; // Build HTML html = '/g, '>' ).replace( /"/g, '"' ); html += ' title="' + title + '"'; - if ( attrs.target ) + } + + if ( attrs.target ) { html += ' target="' + attrs.target + '"'; + } html += '>';