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:
@@ -180,11 +180,14 @@ var wpLink;
|
||||
// Build HTML
|
||||
html = '<a href="' + attrs.href + '"';
|
||||
|
||||
if ( attrs.title )
|
||||
if ( attrs.title ) {
|
||||
title = attrs.title.replace( /</g, '<' ).replace( />/g, '>' ).replace( /"/g, '"' );
|
||||
html += ' title="' + title + '"';
|
||||
if ( attrs.target )
|
||||
}
|
||||
|
||||
if ( attrs.target ) {
|
||||
html += ' target="' + attrs.target + '"';
|
||||
}
|
||||
|
||||
html += '>';
|
||||
|
||||
|
||||
2
wp-includes/js/wplink.min.js
vendored
2
wp-includes/js/wplink.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user