WordPress.org

Make WordPress Core

Ticket #43398: 43398.2.diff

File 43398.2.diff, 2.0 KB (added by audrasjb, 3 years ago)

Replace H2 with NAV elements. No CSS change needed.

  • src/wp-admin/about.php

    diff --git a/src/wp-admin/about.php b/src/wp-admin/about.php
    index 876521e..afab85c 100644
    a b include( ABSPATH . 'wp-admin/admin-header.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">
    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/includes/ms.php

    diff --git a/src/wp-admin/includes/ms.php b/src/wp-admin/includes/ms.php
    index 9187d0d..3bc5faf 100644
    a b function network_edit_site_nav( $args = array() ) { 
    11301130        }
    11311131
    11321132        // All done!
    1133         echo '<h2 class="nav-tab-wrapper wp-clearfix">';
     1133        echo '<nav class="nav-tab-wrapper wp-clearfix">';
    11341134        echo implode( '', $screen_links );
    1135         echo '</h2>';
     1135        echo '</nav>';
    11361136}
    11371137
    11381138/**
  • src/wp-admin/nav-menus.php

    diff --git a/src/wp-admin/nav-menus.php b/src/wp-admin/nav-menus.php
    index 4051791..83075aa 100644
    a b require_once( ABSPATH . 'wp-admin/admin-header.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">
    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 ) {
    require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    640640                        <?php
    641641                }
    642642                ?>
    643         </h2>
     643        </nav>
    644644        <?php
    645645        foreach ( $messages as $message ) :
    646646                echo $message . "\n";