WordPress.org

Make WordPress Core

Ticket #29767: 29767.patch

File 29767.patch, 1.1 KB (added by afercia, 7 years ago)
  • src/wp-includes/js/quicktags.js

     
    247247                        defaults = ',strong,em,link,block,del,ins,img,ul,ol,li,code,more,close,';
    248248
    249249                for ( inst in t.instances ) {
    250                         if ( inst === 0 ) {
     250                        if ( '0' === inst ) {
    251251                                continue;
    252252                        }
    253253
     
    323323         * @param string access_key Optional. Access key for the button.
    324324         * @param string title Optional. Button's title="..."
    325325         * @param int priority Optional. Number representing the desired position of the button in the toolbar. 1 - 9 = first, 11 - 19 = second, 21 - 29 = third, etc.
    326          * @param string instance Optional. Limit the button to a specifric instance of Quicktags, add to all instances if not present.
     326         * @param string instance Optional. Limit the button to a specific instance of Quicktags, add to all instances if not present.
    327327         * @return mixed null or the button object that is needed for back-compat.
    328328         */
    329329        qt.addButton = function( id, display, arg1, arg2, access_key, title, priority, instance ) {