Make WordPress Core


Ignore:
Timestamp:
03/20/2018 05:46:12 PM (7 years ago)
Author:
afercia
Message:

Accessibility: Menus screen: Improve headings and instructions for better accessibility.

Props audrasjb, melchoyce, juliemoynat.
Fixes #43397.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/nav-menus.php

    r42719 r42857  
    743743            <?php
    744744            printf(
    745                 __( 'Edit your menu below, or <a href="%s">create a new menu</a>.' ), esc_url(
     745                __( 'Edit your menu below, or <a href="%s">create a new menu</a>. Don&#8217;t forget to save your changes!' ), esc_url(
    746746                    add_query_arg(
    747747                        array(
     
    753753            );
    754754?>
     755            <span class="screen-reader-text"><?php _e( 'Click the Save Menu button to save your changes.' ); ?></span>
    755756        </span><!-- /add-edit-menu-action -->
    756757        <?php else : ?>
     
    801802                <?php
    802803                printf(
    803                     __( 'or <a href="%s">create a new menu</a>.' ), esc_url(
     804                    __( 'or <a href="%s">create a new menu</a>. Don&#8217;t forget to save your changes!' ), esc_url(
    804805                        add_query_arg(
    805806                            array(
     
    811812                );
    812813?>
     814                <span class="screen-reader-text"><?php _e( 'Click the Save Menu button to save your changes.' ); ?></span>
    813815            </span><!-- /add-new-menu-action -->
    814816        </form>
     
    831833            <input type="hidden" name="action" value="add-menu-item" />
    832834            <?php wp_nonce_field( 'add-menu_item', 'menu-settings-column-nonce' ); ?>
     835            <h2><?php _e( 'Add menu items' ); ?></h2>
    833836            <?php do_accordion_sections( 'nav-menus', 'side', null ); ?>
    834837        </form>
     
    844847            }
    845848            ?>
     849                <h2><?php _e( 'Menu structure' ); ?></h2>
    846850                <div class="menu-edit <?php echo $new_screen_class; ?>">
    847851                    <input type="hidden" name="nav-menu-data">
     
    876880                        <div id="post-body-content" class="wp-clearfix">
    877881                            <?php if ( ! $add_new_screen ) : ?>
    878                             <h3><?php _e( 'Menu Structure' ); ?></h3>
    879882                            <?php
    880883                                $hide_style = '';
Note: See TracChangeset for help on using the changeset viewer.