Add braces around conditionals. props TobiasBg. fixes #25704.
Built from https://develop.svn.wordpress.org/trunk@27082 git-svn-id: http://core.svn.wordpress.org/trunk@26955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4830eeb9ad
commit
e35d675558
|
@ -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 += '>';
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue