WordPress.org

Make WordPress Core

Ticket #43398: 43398.3.diff

File 43398.3.diff, 4.4 KB (added by afercia, 3 years ago)
  • src/wp-admin/about.php

     
    2727
    2828                <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
    2929
    30                 <h2 class="nav-tab-wrapper wp-clearfix">
     30                <nav class="nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
    3131                        <a href="about.php" class="nav-tab nav-tab-active"><?php _e( 'What&#8217;s New' ); ?></a>
    3232                        <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
    3333                        <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
    3434                        <a href="freedoms.php?privacy-notice" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
    35                 </h2>
     35                </nav>
    3636
    3737                <h2 class="feature-section-header"><?php _e( 'A Little Better Every Day' ); ?></h2>
    3838
  • src/wp-admin/credits.php

     
    2424
    2525<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
    2626
    27 <h2 class="nav-tab-wrapper wp-clearfix">
     27<nav class="nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
    2828        <a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
    2929        <a href="credits.php" class="nav-tab nav-tab-active"><?php _e( 'Credits' ); ?></a>
    3030        <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
    3131        <a href="freedoms.php?privacy-notice" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
    32 </h2>
     32</nav>
    3333
    3434<div class="about-wrap-content">
    3535<?php
     
    7272                        $title = translate( $group_data['name'] );
    7373                }
    7474
    75                 echo '<h3 class="wp-people-group">' . esc_html( $title ) . "</h3>\n";
     75                echo '<h2 class="wp-people-group">' . esc_html( $title ) . "</h2>\n";
    7676        }
    7777
    7878        if ( ! empty( $group_data['shuffle'] ) ) {
  • src/wp-admin/css/about.css

     
    401401
    402402/* Credits */
    403403
    404 .about-wrap h3.wp-people-group {
     404.about-wrap h2.wp-people-group {
    405405        margin: 2.6em 0 1.33em;
    406406        padding: 0;
    407407        font-size: 16px;
    408408        line-height: inherit;
     409        font-weight: 600;
     410        text-align: left;
    409411}
    410412
    411413.about-wrap .wp-people-group {
  • src/wp-admin/freedoms.php

     
    3434
    3535<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
    3636
    37 <h2 class="nav-tab-wrapper wp-clearfix">
     37<nav class="nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
    3838        <a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
    3939        <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
    4040        <a href="freedoms.php" class="nav-tab<?php echo $freedoms_class; ?>"><?php _e( 'Freedoms' ); ?></a>
    4141        <a href="freedoms.php?privacy-notice" class="nav-tab<?php echo $privacy_class; ?>"><?php _e( 'Privacy' ); ?></a>
    42 </h2>
     42</nav>
    4343
    4444<?php if ( $is_privacy_notice ) : ?>
    4545
  • src/wp-admin/includes/ms.php

     
    11301130        }
    11311131
    11321132        // All done!
    1133         echo '<h2 class="nav-tab-wrapper wp-clearfix">';
     1133        echo '<nav class="nav-tab-wrapper wp-clearfix" aria-label="' . esc_attr__( 'Secondary menu' ) . '">';
    11341134        echo implode( '', $screen_links );
    1135         echo '</h2>';
     1135        echo '</nav>';
    11361136}
    11371137
    11381138/**
  • src/wp-admin/nav-menus.php

     
    627627
    628628        <hr class="wp-header-end">
    629629
    630         <h2 class="nav-tab-wrapper wp-clearfix">
     630        <nav class="nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
    631631                <a href="<?php echo admin_url( 'nav-menus.php' ); ?>" class="nav-tab<?php echo $nav_tab_active_class; ?>"><?php esc_html_e( 'Edit Menus' ); ?></a>
    632632                <?php
    633633                if ( $num_locations && $menu_count ) {
     
    640640                        <?php
    641641                }
    642642                ?>
    643         </h2>
     643        </nav>
    644644        <?php
    645645        foreach ( $messages as $message ) :
    646646                echo $message . "\n";