Make WordPress Core

Ticket #36735: 36735.4.patch

File 36735.4.patch, 533 bytes (added by adamsilverstein, 9 years ago)
  • src/wp-includes/js/shortcode.js

     
    326326                        _.each( options.attrs, function( value, attr ) {
    327327                                text += ' ' + attr;
    328328
    329                                 // Use empty attribute notation where possible.
    330                                 if ( '' === value ) {
    331                                         return;
    332                                 }
    333 
    334329                                // Convert boolean values to strings.
    335330                                if ( _.isBoolean( value ) ) {
    336331                                        value = value ? 'true' : 'false';