Ticket #33558: 33558.2.patch
File 33558.2.patch, 6.6 KB (added by , 9 years ago) |
---|
-
src/wp-admin/css/dashboard.css
115 115 line-height: 2.1em; 116 116 } 117 117 118 .welcome-panel h 3{118 .welcome-panel h2 { 119 119 margin: 0; 120 120 font-size: 21px; 121 121 font-weight: normal; … … 122 122 line-height: 1.2; 123 123 } 124 124 125 .welcome-panel h 4{125 .welcome-panel h3 { 126 126 margin: 1.33em 0 0; 127 127 font-size: 16px; 128 128 } … … 360 360 overflow: hidden; 361 361 } 362 362 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; 365 368 } 366 369 367 370 /* Dashboard right now - Colors */ … … 378 381 padding: 10px 12px 6px 12px; 379 382 } 380 383 381 #dashboard_right_now .sub h 4{384 #dashboard_right_now .sub h3 { 382 385 color: #555; 383 386 } 384 387 … … 537 540 border: none; 538 541 } 539 542 540 #dashboard_quick_press .drafts h4 {541 margin: 0 12px 8px;542 font-weight: normal;543 }544 545 543 #dashboard_quick_press .drafts .view-all { 546 544 float: right; 547 545 margin: 0 12px 0 0; … … 576 574 margin: 0 5px 0 0; 577 575 } 578 576 579 /* Dashboard activity widget*/577 /* Dashboard common styles */ 580 578 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; 583 584 font-weight: normal; 585 color: #23282d; 584 586 } 585 587 586 #dashboard-widgets #dashboard_activity h4.comment-meta { 587 margin: 0; 588 } 588 /* Dashboard activity widget */ 589 589 590 #dashboard_activity h4.comment-meta {591 margin-bottom: 4px;592 }593 594 590 #dashboard_activity ul { 595 591 padding: 0 12px; 596 592 } … … 708 704 margin: 1em 0; 709 705 } 710 706 711 #activity-widget #the-comment-list .comment-item h4 {712 font-size: 13px;713 color: #999;714 }715 716 707 #activity-widget #the-comment-list .comment-item p.row-actions { 717 708 margin: 4px 0 0 0; 718 709 } … … 794 785 right: 33px; 795 786 } 796 787 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 805 788 #dashboard_plugins h5 { 806 789 font-size: 14px; 807 790 } … … 834 817 border-top: none; 835 818 } 836 819 837 #latest-comments #the-comment-list .comment- item h4{820 #latest-comments #the-comment-list .comment-meta { 838 821 line-height: 1.5em; 839 margin -top: 0;822 margin: 0; 840 823 color: #666; 841 824 } 842 825 843 #latest-comments #the-comment-list .comment- item h4cite {826 #latest-comments #the-comment-list .comment-meta cite { 844 827 font-style: normal; 845 828 font-weight: normal; 846 829 } -
src/wp-admin/includes/dashboard.php
530 530 531 531 echo '<div class="drafts">'; 532 532 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"; 534 534 } 535 echo '<h 4 class="hide-if-no-js">' . __( 'Drafts' ) . "</h4>\n<ul>";535 echo '<h2 class="hide-if-no-js">' . __( 'Drafts' ) . "</h2>\n<ul>"; 536 536 537 537 $drafts = array_slice( $drafts, 0, 3 ); 538 538 foreach ( $drafts as $draft ) { … … 638 638 <?php if ( !$comment->comment_type || 'comment' == $comment->comment_type ) : ?> 639 639 640 640 <div class="dashboard-comment-wrap has-row-actions"> 641 < h4class="comment-meta">641 <p class="comment-meta"> 642 642 <?php 643 643 if ( $comment_post_link ) { 644 644 printf( … … 657 657 ); 658 658 } 659 659 ?> 660 </ h4>660 </p> 661 661 662 662 <?php 663 663 else : … … 675 675 ?> 676 676 <div class="dashboard-comment-wrap has-row-actions"> 677 677 <?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> 679 679 <p class="comment-author"><?php comment_author_link( $comment ); ?></p> 680 680 681 681 <?php endif; // comment_type ?> … … 765 765 766 766 echo '<div id="' . $args['id'] . '" class="activity-block">'; 767 767 768 echo '<h 4>' . $args['title'] . '</h4>';768 echo '<h3>' . $args['title'] . '</h3>'; 769 769 770 770 echo '<ul>'; 771 771 … … 841 841 842 842 if ( $comments ) { 843 843 echo '<div id="latest-comments" class="activity-block">'; 844 echo '<h 4>' . __( 'Comments' ) . '</h4>';844 echo '<h3>' . __( 'Comments' ) . '</h3>'; 845 845 846 846 echo '<div id="the-comment-list" data-wp-lists="list:comment">'; 847 847 foreach ( $comments as $comment ) … … 1211 1211 $percentused = number_format( $percentused ); 1212 1212 1213 1213 ?> 1214 <h 4 class="mu-storage"><?php _e( 'Storage Space' ); ?></h4>1214 <h3 class="mu-storage"><?php _e( 'Storage Space' ); ?></h3> 1215 1215 <div class="mu-storage"> 1216 1216 <ul> 1217 1217 <li class="storage-count"> … … 1365 1365 function wp_welcome_panel() { 1366 1366 ?> 1367 1367 <div class="welcome-panel-content"> 1368 <h 3><?php _e( 'Welcome to WordPress!' ); ?></h3>1368 <h2><?php _e( 'Welcome to WordPress!' ); ?></h2> 1369 1369 <p class="about-description"><?php _e( 'We’ve assembled some links to get you started:' ); ?></p> 1370 1370 <div class="welcome-panel-column-container"> 1371 1371 <div class="welcome-panel-column"> 1372 1372 <?php if ( current_user_can( 'customize' ) ): ?> 1373 <h 4><?php _e( 'Get Started' ); ?></h4>1373 <h3><?php _e( 'Get Started' ); ?></h3> 1374 1374 <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> 1375 1375 <?php endif; ?> 1376 1376 <a class="button button-primary button-hero hide-if-customize" href="<?php echo admin_url( 'themes.php' ); ?>"><?php _e( 'Customize Your Site' ); ?></a> … … 1379 1379 <?php endif; ?> 1380 1380 </div> 1381 1381 <div class="welcome-panel-column"> 1382 <h 4><?php _e( 'Next Steps' ); ?></h4>1382 <h3><?php _e( 'Next Steps' ); ?></h3> 1383 1383 <ul> 1384 1384 <?php if ( 'page' == get_option( 'show_on_front' ) && ! get_option( 'page_for_posts' ) ) : ?> 1385 1385 <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> … … 1396 1396 </ul> 1397 1397 </div> 1398 1398 <div class="welcome-panel-column welcome-panel-last"> 1399 <h 4><?php _e( 'More Actions' ); ?></h4>1399 <h3><?php _e( 'More Actions' ); ?></h3> 1400 1400 <ul> 1401 1401 <?php if ( current_theme_supports( 'widgets' ) || current_theme_supports( 'menus' ) ) : ?> 1402 1402 <li><div class="welcome-icon welcome-widgets-menus"><?php