WordPress.org

Make WordPress Core

Changeset 35414


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

Dashboard: make tags used for headings more semantic.

Props Cheffheid, afercia.
Fixes #33558.

Location:
trunk/src/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/common.css

    r35343 r35414  
    565565}
    566566
    567 .wrap > h2:first-child, /* Back-compat for old plugins */
    568 .wrap h1,
    569 .subtitle {
    570     font-weight: normal;
    571     margin: 0;
    572 }
    573 
    574 .wrap > h2:first-child, /* Back-compat for old plugins */
     567.wrap > h2:first-child, /* Back-compat for pre-4.4 */
     568.wrap [class$="icon32"] + h2, /* Back-compat for pre-4.4 */
     569.postbox .inside h2, /* Back-compat for pre-4.4 */
    575570.wrap h1 {
    576571    font-size: 23px;
    577572    font-weight: 400;
     573    margin: 0;
    578574    padding: 9px 15px 4px 0;
    579575    line-height: 29px;
     
    581577
    582578.subtitle {
     579    margin: 0;
     580    padding-left: 25px;
    583581    color: #777;
    584582    font-size: 14px;
    585     padding-left: 25px;
     583    font-weight: normal;
    586584}
    587585
     
    20592057}
    20602058
    2061 .metabox-holder h3.hndle, /* Back-compat for pre-4.4 */
    20622059.metabox-holder .stuffbox > h3, /* Back-compat for pre-4.4 */
    20632060.metabox-holder .postbox > h3, /* Back-compat for pre-4.4 */
    2064 .metabox-holder h2 {
     2061.metabox-holder h3.hndle, /* Back-compat for pre-4.4 */
     2062.metabox-holder h2.hndle {
    20652063    font-size: 14px;
    20662064    padding: 8px 12px;
  • trunk/src/wp-admin/css/dashboard.css

    r35128 r35414  
    116116}
    117117
    118 .welcome-panel h3 {
     118.welcome-panel h2 {
    119119    margin: 0;
    120120    font-size: 21px;
     
    123123}
    124124
    125 .welcome-panel h4 {
     125.welcome-panel h3 {
    126126    margin: 1.33em 0 0;
    127127    font-size: 16px;
     
    361361}
    362362
    363 #dashboard-widgets h4.mu-storage {
    364     margin-bottom: 10px;
     363#dashboard-widgets h3.mu-storage {
     364    margin: 0 0 10px;
     365    padding: 0;
     366    font-size: 14px;
     367    font-weight: normal;
    365368}
    366369
     
    379382}
    380383
    381 #dashboard_right_now .sub h4 {
     384#dashboard_right_now .sub h3 {
    382385    color: #555;
    383386}
     
    538541}
    539542
    540 #dashboard_quick_press .drafts h4 {
    541     margin: 0 12px 8px;
    542     font-weight: normal;
    543 }
    544 
    545543#dashboard_quick_press .drafts .view-all {
    546544    float: right;
     
    577575}
    578576
     577/* Dashboard common styles */
     578
     579#dashboard-widgets h4, /* Back-compat for pre-4.4 */
     580#dashboard-widgets h3,
     581#dashboard_quick_press .drafts h2 {
     582    margin: 0 12px 8px;
     583    padding: 0;
     584    font-size: 14px;
     585    font-weight: normal;
     586    color: #23282d;
     587}
     588
     589#dashboard-widgets .inside h4, /* Back-compat for pre-4.4 */
     590#dashboard-widgets .inside h3 {
     591    margin-left: 0;
     592    margin-right: 0;
     593}
     594
    579595/* Dashboard activity widget */
    580 
    581 #dashboard-widgets #dashboard_activity h4 {
    582     margin: 0 0 8px 12px;
    583     font-weight: normal;
    584 }
    585 
    586 #dashboard-widgets #dashboard_activity h4.comment-meta {
    587     margin: 0;
    588 }
    589 
    590 #dashboard_activity h4.comment-meta {
    591     margin-bottom: 4px;
    592 }
    593596
    594597#dashboard_activity ul {
     
    707710#activity-widget #the-comment-list .dashboard-comment-wrap blockquote {
    708711    margin: 1em 0;
    709 }
    710 
    711 #activity-widget #the-comment-list .comment-item h4 {
    712     font-size: 13px;
    713     color: #999;
    714712}
    715713
     
    795793}
    796794
    797 #dashboard-widgets h4 {
    798     color: #23282d;
    799     font-weight: normal;
    800     font-size: 14px;
    801     margin: 0 0 .2em;
    802     padding: 0;
    803 }
    804 
    805795#dashboard_plugins h5 {
    806796    font-size: 14px;
     
    835825}
    836826
    837 #latest-comments #the-comment-list .comment-item h4 {
     827#latest-comments #the-comment-list .comment-meta {
    838828    line-height: 1.5em;
    839     margin-top: 0;
     829    margin: 0;
    840830    color: #666;
    841831}
    842832
    843 #latest-comments #the-comment-list .comment-item h4 cite {
     833#latest-comments #the-comment-list .comment-meta cite {
    844834    font-style: normal;
    845835    font-weight: normal;
  • 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.