Add braces around conditionals. props TobiasBg. fixes #25704.
git-svn-id: https://develop.svn.wordpress.org/trunk@27082 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
28bab15d16
commit
0d8921de03
|
@ -180,11 +180,14 @@ var wpLink;
|
||||||
// Build HTML
|
// Build HTML
|
||||||
html = '<a href="' + attrs.href + '"';
|
html = '<a href="' + attrs.href + '"';
|
||||||
|
|
||||||
if ( attrs.title )
|
if ( attrs.title ) {
|
||||||
title = attrs.title.replace( /</g, '<' ).replace( />/g, '>' ).replace( /"/g, '"' );
|
title = attrs.title.replace( /</g, '<' ).replace( />/g, '>' ).replace( /"/g, '"' );
|
||||||
html += ' title="' + title + '"';
|
html += ' title="' + title + '"';
|
||||||
if ( attrs.target )
|
}
|
||||||
|
|
||||||
|
if ( attrs.target ) {
|
||||||
html += ' target="' + attrs.target + '"';
|
html += ' target="' + attrs.target + '"';
|
||||||
|
}
|
||||||
|
|
||||||
html += '>';
|
html += '>';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue