Make WordPress Core


Ignore:
Timestamp:
10/13/2015 06:59:34 AM (9 years ago)
Author:
SergeyBiryukov
Message:

Acessibility: "Add New Category" links on Edit Post screen should not be a header.

Props afercia.
Fixes #33557.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/meta-boxes.php

    r34911 r35129  
    506506    <?php if ( current_user_can( $taxonomy->cap->edit_terms ) ) : ?>
    507507            <div id="<?php echo $tax_name; ?>-adder" class="wp-hidden-children">
    508                 <h4>
    509                     <a id="<?php echo $tax_name; ?>-add-toggle" href="#<?php echo $tax_name; ?>-add" class="hide-if-no-js">
    510                         <?php
    511                             /* translators: %s: add new taxonomy label */
    512                             printf( __( '+ %s' ), $taxonomy->labels->add_new_item );
    513                         ?>
    514                     </a>
    515                 </h4>
     508                <a id="<?php echo $tax_name; ?>-add-toggle" href="#<?php echo $tax_name; ?>-add" class="hide-if-no-js taxonomy-add-new">
     509                    <?php
     510                        /* translators: %s: add new taxonomy label */
     511                        printf( __( '+ %s' ), $taxonomy->labels->add_new_item );
     512                    ?>
     513                </a>
    516514                <p id="<?php echo $tax_name; ?>-add" class="category-add wp-hidden-child">
    517515                    <label class="screen-reader-text" for="new<?php echo $tax_name; ?>"><?php echo $taxonomy->labels->add_new_item; ?></label>
     
    942940
    943941    <div id="category-adder" class="wp-hidden-children">
    944         <h4><a id="category-add-toggle" href="#category-add"><?php _e( '+ Add New Category' ); ?></a></h4>
     942        <a id="category-add-toggle" href="#category-add" class="taxonomy-add-new"><?php _e( '+ Add New Category' ); ?></a>
    945943        <p id="link-category-add" class="wp-hidden-child">
    946944            <label class="screen-reader-text" for="newcat"><?php _e( '+ Add New Category' ); ?></label>
Note: See TracChangeset for help on using the changeset viewer.