Make WordPress Core

Ticket #33558: 33558.2.patch

File 33558.2.patch, 6.6 KB (added by afercia, 9 years ago)
  • src/wp-admin/css/dashboard.css

     
    115115        line-height: 2.1em;
    116116}
    117117
    118 .welcome-panel h3 {
     118.welcome-panel h2 {
    119119        margin: 0;
    120120        font-size: 21px;
    121121        font-weight: normal;
     
    122122        line-height: 1.2;
    123123}
    124124
    125 .welcome-panel h4 {
     125.welcome-panel h3 {
    126126        margin: 1.33em 0 0;
    127127        font-size: 16px;
    128128}
     
    360360        overflow: hidden;
    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
    367370/* Dashboard right now - Colors */
     
    378381        padding: 10px 12px 6px 12px;
    379382}
    380383
    381 #dashboard_right_now .sub h4 {
     384#dashboard_right_now .sub h3 {
    382385        color: #555;
    383386}
    384387
     
    537540        border: none;
    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;
    547545        margin: 0 12px 0 0;
     
    576574        margin: 0 5px 0 0;
    577575}
    578576
    579 /* Dashboard activity widget */
     577/* Dashboard common styles */
    580578
    581 #dashboard-widgets #dashboard_activity h4 {
    582         margin: 0 0 8px 12px;
     579#dashboard-widgets #dashboard_activity h3,
     580#dashboard_quick_press .drafts h2 {
     581        margin: 0 12px 8px;
     582        padding: 0;
     583        font-size: 14px;
    583584        font-weight: normal;
     585        color: #23282d;
    584586}
    585587
    586 #dashboard-widgets #dashboard_activity h4.comment-meta {
    587         margin: 0;
    588 }
     588/* Dashboard activity widget */
    589589
    590 #dashboard_activity h4.comment-meta {
    591         margin-bottom: 4px;
    592 }
    593 
    594590#dashboard_activity ul {
    595591        padding: 0 12px;
    596592}
     
    708704        margin: 1em 0;
    709705}
    710706
    711 #activity-widget #the-comment-list .comment-item h4 {
    712         font-size: 13px;
    713         color: #999;
    714 }
    715 
    716707#activity-widget #the-comment-list .comment-item p.row-actions {
    717708        margin: 4px 0 0 0;
    718709}
     
    794785        right: 33px;
    795786}
    796787
    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 
    805788#dashboard_plugins h5 {
    806789        font-size: 14px;
    807790}
     
    834817        border-top: none;
    835818}
    836819
    837 #latest-comments #the-comment-list .comment-item h4 {
     820#latest-comments #the-comment-list .comment-meta {
    838821        line-height: 1.5em;
    839         margin-top: 0;
     822        margin: 0;
    840823        color: #666;
    841824}
    842825
    843 #latest-comments #the-comment-list .comment-item h4 cite {
     826#latest-comments #the-comment-list .comment-meta cite {
    844827        font-style: normal;
    845828        font-weight: normal;
    846829}
  • src/wp-admin/includes/dashboard.php

     
    530530
    531531        echo '<div class="drafts">';
    532532        if ( count( $drafts ) > 3 ) {
    533                 echo '<p class="view-all"><a href="' . esc_url( admin_url( 'edit.php?post_status=draft' ) ) . '">' . _x( 'View all', 'drafts' ) . "</a></p>\n";
     533                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";
    534534        }
    535         echo '<h4 class="hide-if-no-js">' . __( 'Drafts' ) . "</h4>\n<ul>";
     535        echo '<h2 class="hide-if-no-js">' . __( 'Drafts' ) . "</h2>\n<ul>";
    536536
    537537        $drafts = array_slice( $drafts, 0, 3 );
    538538        foreach ( $drafts as $draft ) {
     
    638638                        <?php if ( !$comment->comment_type || 'comment' == $comment->comment_type ) : ?>
    639639
    640640                        <div class="dashboard-comment-wrap has-row-actions">
    641                         <h4 class="comment-meta">
     641                        <p class="comment-meta">
    642642                                <?php
    643643                                if ( $comment_post_link ) {
    644644                                        printf(
     
    657657                                        );
    658658                                }
    659659                                ?>
    660                         </h4>
     660                        </p>
    661661
    662662                        <?php
    663663                        else :
     
    675675                        ?>
    676676                        <div class="dashboard-comment-wrap has-row-actions">
    677677                        <?php /* translators: %1$s is type of comment, %2$s is link to the post */ ?>
    678                         <h4 class="comment-meta"><?php printf( _x( '%1$s on %2$s', 'dashboard' ), "<strong>$type</strong>", $comment_post_link ); ?></h4>
     678                        <p class="comment-meta"><?php printf( _x( '%1$s on %2$s', 'dashboard' ), "<strong>$type</strong>", $comment_post_link ); ?></p>
    679679                        <p class="comment-author"><?php comment_author_link( $comment ); ?></p>
    680680
    681681                        <?php endif; // comment_type ?>
     
    765765
    766766                echo '<div id="' . $args['id'] . '" class="activity-block">';
    767767
    768                 echo '<h4>' . $args['title'] . '</h4>';
     768                echo '<h3>' . $args['title'] . '</h3>';
    769769
    770770                echo '<ul>';
    771771
     
    841841
    842842        if ( $comments ) {
    843843                echo '<div id="latest-comments" class="activity-block">';
    844                 echo '<h4>' . __( 'Comments' ) . '</h4>';
     844                echo '<h3>' . __( 'Comments' ) . '</h3>';
    845845
    846846                echo '<div id="the-comment-list" data-wp-lists="list:comment">';
    847847                foreach ( $comments as $comment )
     
    12111211        $percentused = number_format( $percentused );
    12121212
    12131213        ?>
    1214         <h4 class="mu-storage"><?php _e( 'Storage Space' ); ?></h4>
     1214        <h3 class="mu-storage"><?php _e( 'Storage Space' ); ?></h3>
    12151215        <div class="mu-storage">
    12161216        <ul>
    12171217                <li class="storage-count">
     
    13651365function wp_welcome_panel() {
    13661366        ?>
    13671367        <div class="welcome-panel-content">
    1368         <h3><?php _e( 'Welcome to WordPress!' ); ?></h3>
     1368        <h2><?php _e( 'Welcome to WordPress!' ); ?></h2>
    13691369        <p class="about-description"><?php _e( 'We&#8217;ve assembled some links to get you started:' ); ?></p>
    13701370        <div class="welcome-panel-column-container">
    13711371        <div class="welcome-panel-column">
    13721372                <?php if ( current_user_can( 'customize' ) ): ?>
    1373                         <h4><?php _e( 'Get Started' ); ?></h4>
     1373                        <h3><?php _e( 'Get Started' ); ?></h3>
    13741374                        <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>
    13751375                <?php endif; ?>
    13761376                <a class="button button-primary button-hero hide-if-customize" href="<?php echo admin_url( 'themes.php' ); ?>"><?php _e( 'Customize Your Site' ); ?></a>
     
    13791379                <?php endif; ?>
    13801380        </div>
    13811381        <div class="welcome-panel-column">
    1382                 <h4><?php _e( 'Next Steps' ); ?></h4>
     1382                <h3><?php _e( 'Next Steps' ); ?></h3>
    13831383                <ul>
    13841384                <?php if ( 'page' == get_option( 'show_on_front' ) && ! get_option( 'page_for_posts' ) ) : ?>
    13851385                        <li><?php printf( '<a href="%s" class="welcome-icon welcome-edit-page">' . __( 'Edit your front page' ) . '</a>', get_edit_post_link( get_option( 'page_on_front' ) ) ); ?></li>
     
    13961396                </ul>
    13971397        </div>
    13981398        <div class="welcome-panel-column welcome-panel-last">
    1399                 <h4><?php _e( 'More Actions' ); ?></h4>
     1399                <h3><?php _e( 'More Actions' ); ?></h3>
    14001400                <ul>
    14011401                <?php if ( current_theme_supports( 'widgets' ) || current_theme_supports( 'menus' ) ) : ?>
    14021402                        <li><div class="welcome-icon welcome-widgets-menus"><?php