Make WordPress Core

Changeset 27082


Ignore:
Timestamp:
02/03/2014 08:16:08 PM (11 years ago)
Author:
SergeyBiryukov
Message:

Add braces around conditionals. props TobiasBg. fixes #25704.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/wplink.js

    r27080 r27082  
    181181            html = '<a href="' + attrs.href + '"';
    182182
    183             if ( attrs.title )
     183            if ( attrs.title ) {
    184184                title = attrs.title.replace( /</g, '&lt;' ).replace( />/g, '&gt;' ).replace( /"/g, '&quot;' );
    185185                html += ' title="' + title + '"';
    186             if ( attrs.target )
     186            }
     187
     188            if ( attrs.target ) {
    187189                html += ' target="' + attrs.target + '"';
     190            }
    188191
    189192            html += '>';
Note: See TracChangeset for help on using the changeset viewer.