Acessibility: "Add New Category" links on Edit Post screen should not be a header.
Props afercia. Fixes #33557. Built from https://develop.svn.wordpress.org/trunk@35129 git-svn-id: http://core.svn.wordpress.org/trunk@35094 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1c5d327676
commit
7ebbe03a1f
|
@ -505,14 +505,12 @@ function post_categories_meta_box( $post, $box ) {
|
|||
</div>
|
||||
<?php if ( current_user_can( $taxonomy->cap->edit_terms ) ) : ?>
|
||||
<div id="<?php echo $tax_name; ?>-adder" class="wp-hidden-children">
|
||||
<h4>
|
||||
<a id="<?php echo $tax_name; ?>-add-toggle" href="#<?php echo $tax_name; ?>-add" class="hide-if-no-js">
|
||||
<?php
|
||||
/* translators: %s: add new taxonomy label */
|
||||
printf( __( '+ %s' ), $taxonomy->labels->add_new_item );
|
||||
?>
|
||||
</a>
|
||||
</h4>
|
||||
<a id="<?php echo $tax_name; ?>-add-toggle" href="#<?php echo $tax_name; ?>-add" class="hide-if-no-js taxonomy-add-new">
|
||||
<?php
|
||||
/* translators: %s: add new taxonomy label */
|
||||
printf( __( '+ %s' ), $taxonomy->labels->add_new_item );
|
||||
?>
|
||||
</a>
|
||||
<p id="<?php echo $tax_name; ?>-add" class="category-add wp-hidden-child">
|
||||
<label class="screen-reader-text" for="new<?php echo $tax_name; ?>"><?php echo $taxonomy->labels->add_new_item; ?></label>
|
||||
<input type="text" name="new<?php echo $tax_name; ?>" id="new<?php echo $tax_name; ?>" class="form-required form-input-tip" value="<?php echo esc_attr( $taxonomy->labels->new_item_name ); ?>" aria-required="true"/>
|
||||
|
@ -941,7 +939,7 @@ function link_categories_meta_box($link) {
|
|||
</div>
|
||||
|
||||
<div id="category-adder" class="wp-hidden-children">
|
||||
<h4><a id="category-add-toggle" href="#category-add"><?php _e( '+ Add New Category' ); ?></a></h4>
|
||||
<a id="category-add-toggle" href="#category-add" class="taxonomy-add-new"><?php _e( '+ Add New Category' ); ?></a>
|
||||
<p id="link-category-add" class="wp-hidden-child">
|
||||
<label class="screen-reader-text" for="newcat"><?php _e( '+ Add New Category' ); ?></label>
|
||||
<input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" aria-required="true" />
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-35128';
|
||||
$wp_version = '4.4-alpha-35129';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue