Make WordPress Core

Ticket #30942: 30942_quicktags.diff

File 30942_quicktags.diff, 510 bytes (added by gitlost, 10 years ago)

Proposed patch.

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

     
    260260                        use = '';
    261261
    262262                        // set buttons
    263                         if ( settings.buttons ) {
     263                        if ( typeof settings.buttons === 'string' ) {
    264264                                use = ','+settings.buttons+',';
     265                        } else if ( settings.buttons === false ) {
     266                                use = ' '; // Any old truthy string.
    265267                        }
    266268
    267269                        for ( i in edButtons ) {