Make WordPress Core


Ignore:
Timestamp:
10/28/2015 05:56:22 PM (9 years ago)
Author:
wonderboymusic
Message:

Dashboard: make tags used for headings more semantic.

Props Cheffheid, afercia.
Fixes #33558.

File:
1 edited

Legend:

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

    r35282 r35414  
    541541    echo '<div class="drafts">';
    542542    if ( count( $drafts ) > 3 ) {
    543         echo '<p class="view-all"><a href="' . esc_url( admin_url( 'edit.php?post_status=draft' ) ) . '">' . _x( 'View all', 'drafts' ) . "</a></p>\n";
     543        echo '<p class="view-all"><a href="' . esc_url( admin_url( 'edit.php?post_status=draft' ) ) . '" aria-label="' . __( 'View all drafts' ) . '">' . _x( 'View all', 'drafts' ) . "</a></p>\n";
    544544    }
    545     echo '<h4 class="hide-if-no-js">' . __( 'Drafts' ) . "</h4>\n<ul>";
     545    echo '<h2 class="hide-if-no-js">' . __( 'Drafts' ) . "</h2>\n<ul>";
    546546
    547547    $drafts = array_slice( $drafts, 0, 3 );
     
    649649
    650650            <div class="dashboard-comment-wrap has-row-actions">
    651             <h4 class="comment-meta">
     651            <p class="comment-meta">
    652652                <?php
    653653                if ( $comment_post_link ) {
     
    668668                }
    669669                ?>
    670             </h4>
     670            </p>
    671671
    672672            <?php
     
    686686            <div class="dashboard-comment-wrap has-row-actions">
    687687            <?php /* translators: %1$s is type of comment, %2$s is link to the post */ ?>
    688             <h4 class="comment-meta"><?php printf( _x( '%1$s on %2$s', 'dashboard' ), "<strong>$type</strong>", $comment_post_link ); ?></h4>
     688            <p class="comment-meta"><?php printf( _x( '%1$s on %2$s', 'dashboard' ), "<strong>$type</strong>", $comment_post_link ); ?></p>
    689689            <p class="comment-author"><?php comment_author_link( $comment ); ?></p>
    690690
     
    776776        echo '<div id="' . $args['id'] . '" class="activity-block">';
    777777
    778         echo '<h4>' . $args['title'] . '</h4>';
     778        echo '<h3>' . $args['title'] . '</h3>';
    779779
    780780        echo '<ul>';
     
    855855    if ( $comments ) {
    856856        echo '<div id="latest-comments" class="activity-block">';
    857         echo '<h4>' . __( 'Comments' ) . '</h4>';
     857        echo '<h3>' . __( 'Comments' ) . '</h3>';
    858858
    859859        echo '<div id="the-comment-list" data-wp-lists="list:comment">';
     
    12251225
    12261226    ?>
    1227     <h4 class="mu-storage"><?php _e( 'Storage Space' ); ?></h4>
     1227    <h3 class="mu-storage"><?php _e( 'Storage Space' ); ?></h3>
    12281228    <div class="mu-storage">
    12291229    <ul>
     
    13791379    ?>
    13801380    <div class="welcome-panel-content">
    1381     <h3><?php _e( 'Welcome to WordPress!' ); ?></h3>
     1381    <h2><?php _e( 'Welcome to WordPress!' ); ?></h2>
    13821382    <p class="about-description"><?php _e( 'We&#8217;ve assembled some links to get you started:' ); ?></p>
    13831383    <div class="welcome-panel-column-container">
    13841384    <div class="welcome-panel-column">
    13851385        <?php if ( current_user_can( 'customize' ) ): ?>
    1386             <h4><?php _e( 'Get Started' ); ?></h4>
     1386            <h3><?php _e( 'Get Started' ); ?></h3>
    13871387            <a class="button button-primary button-hero load-customize hide-if-no-customize" href="<?php echo wp_customize_url(); ?>"><?php _e( 'Customize Your Site' ); ?></a>
    13881388        <?php endif; ?>
     
    13931393    </div>
    13941394    <div class="welcome-panel-column">
    1395         <h4><?php _e( 'Next Steps' ); ?></h4>
     1395        <h3><?php _e( 'Next Steps' ); ?></h3>
    13961396        <ul>
    13971397        <?php if ( 'page' == get_option( 'show_on_front' ) && ! get_option( 'page_for_posts' ) ) : ?>
     
    14101410    </div>
    14111411    <div class="welcome-panel-column welcome-panel-last">
    1412         <h4><?php _e( 'More Actions' ); ?></h4>
     1412        <h3><?php _e( 'More Actions' ); ?></h3>
    14131413        <ul>
    14141414        <?php if ( current_theme_supports( 'widgets' ) || current_theme_supports( 'menus' ) ) : ?>
Note: See TracChangeset for help on using the changeset viewer.