WordPress.org

Make WordPress Core

Ticket #48030: 48030.2.patch

File 48030.2.patch, 565 bytes (added by stevegrunwell, 23 months ago)

Updated version that excludes radio buttons and checkboxes.

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

     
    151151                                form.find( 'select#parent option:selected' ).after( '<option value="' + term.term_id + '">' + indent + term.name + '</option>' );
    152152                        }
    153153
    154                         $('input[type="text"]:visible, textarea:visible', form).val('');
     154                        $('input:not([type="checkbox"]):not([type="radio"]):visible, textarea:visible', form).val('');
    155155                });
    156156
    157157                return false;