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:
Sergey Biryukov 2014-02-03 20:17:11 +00:00
parent 4830eeb9ad
commit e35d675558
2 changed files with 6 additions and 3 deletions

View File

@ -180,11 +180,14 @@ var wpLink;
// Build HTML
html = '<a href="' + attrs.href + '"';
if ( attrs.title )
if ( attrs.title ) {
title = attrs.title.replace( /</g, '&lt;' ).replace( />/g, '&gt;' ).replace( /"/g, '&quot;' );
html += ' title="' + title + '"';
if ( attrs.target )
}
if ( attrs.target ) {
html += ' target="' + attrs.target + '"';
}
html += '>';

File diff suppressed because one or more lines are too long