Ticket #36263: 36263.diff
File 36263.diff, 628 bytes (added by , 8 years ago) |
---|
-
wp-includes/js/shortcode.js
216 216 this.attrs = wp.shortcode.attrs( attrs ); 217 217 218 218 // Identify a correctly formatted `attrs` object. 219 } else if ( _. isEqual( _.keys( attrs ), [ 'named', 'numeric' ] )) {220 this.attrs = attrs;219 } else if ( _.difference( _.keys( attrs ), [ 'named', 'numeric' ] ).length === 0 ) { 220 this.attrs = _.defaults( attrs, { named : {}, numeric : [] } ); 221 221 222 222 // Handle a flat object of attributes. 223 223 } else {