Make WordPress Core

Ticket #48030: 48030.3.diff

File 48030.3.diff, 662 bytes (added by davidbaumwald, 2 years ago)

Updated patch excluding buttons types

  • src/js/_enqueues/admin/tags.js

     
    155155                                form.find( 'select#parent option:selected' ).after( '<option value="' + term.term_id + '">' + indent + term.name + '</option>' );
    156156                        }
    157157
    158                         $('input:not([type="checkbox"]):not([type="radio"]):visible, textarea:visible', form).val('');
     158                        $('input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):visible, textarea:visible', form).val('');
    159159                });
    160160
    161161                return false;