Make WordPress Core


Ignore:
Timestamp:
07/26/2019 05:45:21 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Accessibility: Taxonomy: When a new category or tag is being added, show a spinner and noop the button to avoid multiple requests.

Props andg, afercia, guddu1315, SergeyBiryukov.
Fixes #47607.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-tags.php

    r45674 r45683  
    516516     */
    517517    do_action( "{$taxonomy}_add_form_fields", $taxonomy );
    518 
    519     submit_button( $tax->labels->add_new_item );
    520 
     518    ?>
     519    <p class="submit">
     520        <?php submit_button( $tax->labels->add_new_item, 'primary', 'submit', false ); ?>
     521        <span class="spinner"></span>
     522    </p>
     523    <?php
    521524    if ( 'category' == $taxonomy ) {
    522525        /**
Note: See TracChangeset for help on using the changeset viewer.