Make WordPress Core

Ticket #25704: 25704-braces.patch

File 25704-braces.patch, 527 bytes (added by TobiasBg, 12 years ago)

Add braces

  • src/wp-includes/js/wplink.js

    diff --git src/wp-includes/js/wplink.js src/wp-includes/js/wplink.js
    index c798547..2a8f83b 100644
    var wpLink; 
    180180                        // Build HTML
    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                        }
    186187                        if ( attrs.target )
    187188                                html += ' target="' + attrs.target + '"';
    188189