Dashboard: make tags used for headings more semantic.

Props Cheffheid, afercia.
Fixes #33558.

Built from https://develop.svn.wordpress.org/trunk@35414


git-svn-id: http://core.svn.wordpress.org/trunk@35378 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-10-28 17:57:25 +00:00
parent ef6abd3891
commit 843d1c003b
8 changed files with 83 additions and 107 deletions

View File

@ -564,25 +564,23 @@ code {
margin: 10px 2px 0 20px;
}
.wrap > h2:first-child, /* Back-compat for old plugins */
.wrap h1,
.subtitle {
font-weight: normal;
margin: 0;
}
.wrap > h2:first-child, /* Back-compat for old plugins */
.wrap > h2:first-child, /* Back-compat for pre-4.4 */
.wrap [class$="icon32"] + h2, /* Back-compat for pre-4.4 */
.postbox .inside h2, /* Back-compat for pre-4.4 */
.wrap h1 {
font-size: 23px;
font-weight: 400;
margin: 0;
padding: 9px 0 4px 15px;
line-height: 29px;
}
.subtitle {
margin: 0;
padding-right: 25px;
color: #777;
font-size: 14px;
padding-right: 25px;
font-weight: normal;
}
.wrap .add-new-h2, /* deprecated */
@ -2058,10 +2056,10 @@ h2 .nav-tab {
margin-left: 190px;
}
.metabox-holder h3.hndle, /* Back-compat for pre-4.4 */
.metabox-holder .stuffbox > h3, /* Back-compat for pre-4.4 */
.metabox-holder .postbox > h3, /* Back-compat for pre-4.4 */
.metabox-holder h2 {
.metabox-holder h3.hndle, /* Back-compat for pre-4.4 */
.metabox-holder h2.hndle {
font-size: 14px;
padding: 8px 12px;
margin: 0;

View File

@ -564,25 +564,23 @@ code {
margin: 10px 20px 0 2px;
}
.wrap > h2:first-child, /* Back-compat for old plugins */
.wrap h1,
.subtitle {
font-weight: normal;
margin: 0;
}
.wrap > h2:first-child, /* Back-compat for old plugins */
.wrap > h2:first-child, /* Back-compat for pre-4.4 */
.wrap [class$="icon32"] + h2, /* Back-compat for pre-4.4 */
.postbox .inside h2, /* Back-compat for pre-4.4 */
.wrap h1 {
font-size: 23px;
font-weight: 400;
margin: 0;
padding: 9px 15px 4px 0;
line-height: 29px;
}
.subtitle {
margin: 0;
padding-left: 25px;
color: #777;
font-size: 14px;
padding-left: 25px;
font-weight: normal;
}
.wrap .add-new-h2, /* deprecated */
@ -2058,10 +2056,10 @@ h2 .nav-tab {
margin-right: 190px;
}
.metabox-holder h3.hndle, /* Back-compat for pre-4.4 */
.metabox-holder .stuffbox > h3, /* Back-compat for pre-4.4 */
.metabox-holder .postbox > h3, /* Back-compat for pre-4.4 */
.metabox-holder h2 {
.metabox-holder h3.hndle, /* Back-compat for pre-4.4 */
.metabox-holder h2.hndle {
font-size: 14px;
padding: 8px 12px;
margin: 0;

View File

@ -115,14 +115,14 @@
line-height: 2.1em;
}
.welcome-panel h3 {
.welcome-panel h2 {
margin: 0;
font-size: 21px;
font-weight: normal;
line-height: 1.2;
}
.welcome-panel h4 {
.welcome-panel h3 {
margin: 1.33em 0 0;
font-size: 16px;
}
@ -360,8 +360,11 @@ body #dashboard-widgets .postbox form .submit {
overflow: hidden;
}
#dashboard-widgets h4.mu-storage {
margin-bottom: 10px;
#dashboard-widgets h3.mu-storage {
margin: 0 0 10px;
padding: 0;
font-size: 14px;
font-weight: normal;
}
/* Dashboard right now - Colors */
@ -378,7 +381,7 @@ body #dashboard-widgets .postbox form .submit {
padding: 10px 12px 6px 12px;
}
#dashboard_right_now .sub h4 {
#dashboard_right_now .sub h3 {
color: #555;
}
@ -537,11 +540,6 @@ form.initial-form.quickpress-open input#title {
border: none;
}
#dashboard_quick_press .drafts h4 {
margin: 0 12px 8px;
font-weight: normal;
}
#dashboard_quick_press .drafts .view-all {
float: left;
margin: 0 0 0 12px;
@ -576,20 +574,25 @@ form.initial-form.quickpress-open input#title {
margin: 0 0 0 5px;
}
/* Dashboard activity widget */
/* Dashboard common styles */
#dashboard-widgets #dashboard_activity h4 {
margin: 0 12px 8px 0;
#dashboard-widgets h4, /* Back-compat for pre-4.4 */
#dashboard-widgets h3,
#dashboard_quick_press .drafts h2 {
margin: 0 12px 8px;
padding: 0;
font-size: 14px;
font-weight: normal;
color: #23282d;
}
#dashboard-widgets #dashboard_activity h4.comment-meta {
margin: 0;
#dashboard-widgets .inside h4, /* Back-compat for pre-4.4 */
#dashboard-widgets .inside h3 {
margin-right: 0;
margin-left: 0;
}
#dashboard_activity h4.comment-meta {
margin-bottom: 4px;
}
/* Dashboard activity widget */
#dashboard_activity ul {
padding: 0 12px;
@ -708,11 +711,6 @@ form.initial-form.quickpress-open input#title {
margin: 1em 0;
}
#activity-widget #the-comment-list .comment-item h4 {
font-size: 13px;
color: #999;
}
#activity-widget #the-comment-list .comment-item p.row-actions {
margin: 4px 0 0 0;
}
@ -794,14 +792,6 @@ h3:hover .edit-box {
left: 33px;
}
#dashboard-widgets h4 {
color: #23282d;
font-weight: normal;
font-size: 14px;
margin: 0 0 .2em;
padding: 0;
}
#dashboard_plugins h5 {
font-size: 14px;
}
@ -834,13 +824,13 @@ h3:hover .edit-box {
border-top: none;
}
#latest-comments #the-comment-list .comment-item h4 {
#latest-comments #the-comment-list .comment-meta {
line-height: 1.5em;
margin-top: 0;
margin: 0;
color: #666;
}
#latest-comments #the-comment-list .comment-item h4 cite {
#latest-comments #the-comment-list .comment-meta cite {
font-style: normal;
font-weight: normal;
}

View File

@ -115,14 +115,14 @@
line-height: 2.1em;
}
.welcome-panel h3 {
.welcome-panel h2 {
margin: 0;
font-size: 21px;
font-weight: normal;
line-height: 1.2;
}
.welcome-panel h4 {
.welcome-panel h3 {
margin: 1.33em 0 0;
font-size: 16px;
}
@ -360,8 +360,11 @@ body #dashboard-widgets .postbox form .submit {
overflow: hidden;
}
#dashboard-widgets h4.mu-storage {
margin-bottom: 10px;
#dashboard-widgets h3.mu-storage {
margin: 0 0 10px;
padding: 0;
font-size: 14px;
font-weight: normal;
}
/* Dashboard right now - Colors */
@ -378,7 +381,7 @@ body #dashboard-widgets .postbox form .submit {
padding: 10px 12px 6px 12px;
}
#dashboard_right_now .sub h4 {
#dashboard_right_now .sub h3 {
color: #555;
}
@ -537,11 +540,6 @@ form.initial-form.quickpress-open input#title {
border: none;
}
#dashboard_quick_press .drafts h4 {
margin: 0 12px 8px;
font-weight: normal;
}
#dashboard_quick_press .drafts .view-all {
float: right;
margin: 0 12px 0 0;
@ -576,20 +574,25 @@ form.initial-form.quickpress-open input#title {
margin: 0 5px 0 0;
}
/* Dashboard activity widget */
/* Dashboard common styles */
#dashboard-widgets #dashboard_activity h4 {
margin: 0 0 8px 12px;
#dashboard-widgets h4, /* Back-compat for pre-4.4 */
#dashboard-widgets h3,
#dashboard_quick_press .drafts h2 {
margin: 0 12px 8px;
padding: 0;
font-size: 14px;
font-weight: normal;
color: #23282d;
}
#dashboard-widgets #dashboard_activity h4.comment-meta {
margin: 0;
#dashboard-widgets .inside h4, /* Back-compat for pre-4.4 */
#dashboard-widgets .inside h3 {
margin-left: 0;
margin-right: 0;
}
#dashboard_activity h4.comment-meta {
margin-bottom: 4px;
}
/* Dashboard activity widget */
#dashboard_activity ul {
padding: 0 12px;
@ -708,11 +711,6 @@ form.initial-form.quickpress-open input#title {
margin: 1em 0;
}
#activity-widget #the-comment-list .comment-item h4 {
font-size: 13px;
color: #999;
}
#activity-widget #the-comment-list .comment-item p.row-actions {
margin: 4px 0 0 0;
}
@ -794,14 +792,6 @@ h3:hover .edit-box {
right: 33px;
}
#dashboard-widgets h4 {
color: #23282d;
font-weight: normal;
font-size: 14px;
margin: 0 0 .2em;
padding: 0;
}
#dashboard_plugins h5 {
font-size: 14px;
}
@ -834,13 +824,13 @@ h3:hover .edit-box {
border-top: none;
}
#latest-comments #the-comment-list .comment-item h4 {
#latest-comments #the-comment-list .comment-meta {
line-height: 1.5em;
margin-top: 0;
margin: 0;
color: #666;
}
#latest-comments #the-comment-list .comment-item h4 cite {
#latest-comments #the-comment-list .comment-meta cite {
font-style: normal;
font-weight: normal;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -540,9 +540,9 @@ function wp_dashboard_recent_drafts( $drafts = false ) {
echo '<div class="drafts">';
if ( count( $drafts ) > 3 ) {
echo '<p class="view-all"><a href="' . esc_url( admin_url( 'edit.php?post_status=draft' ) ) . '">' . _x( 'View all', 'drafts' ) . "</a></p>\n";
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";
}
echo '<h4 class="hide-if-no-js">' . __( 'Drafts' ) . "</h4>\n<ul>";
echo '<h2 class="hide-if-no-js">' . __( 'Drafts' ) . "</h2>\n<ul>";
$drafts = array_slice( $drafts, 0, 3 );
foreach ( $drafts as $draft ) {
@ -648,7 +648,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
<?php if ( !$comment->comment_type || 'comment' == $comment->comment_type ) : ?>
<div class="dashboard-comment-wrap has-row-actions">
<h4 class="comment-meta">
<p class="comment-meta">
<?php
if ( $comment_post_link ) {
printf(
@ -667,7 +667,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
);
}
?>
</h4>
</p>
<?php
else :
@ -685,7 +685,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
?>
<div class="dashboard-comment-wrap has-row-actions">
<?php /* translators: %1$s is type of comment, %2$s is link to the post */ ?>
<h4 class="comment-meta"><?php printf( _x( '%1$s on %2$s', 'dashboard' ), "<strong>$type</strong>", $comment_post_link ); ?></h4>
<p class="comment-meta"><?php printf( _x( '%1$s on %2$s', 'dashboard' ), "<strong>$type</strong>", $comment_post_link ); ?></p>
<p class="comment-author"><?php comment_author_link( $comment ); ?></p>
<?php endif; // comment_type ?>
@ -775,7 +775,7 @@ function wp_dashboard_recent_posts( $args ) {
echo '<div id="' . $args['id'] . '" class="activity-block">';
echo '<h4>' . $args['title'] . '</h4>';
echo '<h3>' . $args['title'] . '</h3>';
echo '<ul>';
@ -854,7 +854,7 @@ function wp_dashboard_recent_comments( $total_items = 5 ) {
if ( $comments ) {
echo '<div id="latest-comments" class="activity-block">';
echo '<h4>' . __( 'Comments' ) . '</h4>';
echo '<h3>' . __( 'Comments' ) . '</h3>';
echo '<div id="the-comment-list" data-wp-lists="list:comment">';
foreach ( $comments as $comment )
@ -1224,7 +1224,7 @@ function wp_dashboard_quota() {
$percentused = number_format( $percentused );
?>
<h4 class="mu-storage"><?php _e( 'Storage Space' ); ?></h4>
<h3 class="mu-storage"><?php _e( 'Storage Space' ); ?></h3>
<div class="mu-storage">
<ul>
<li class="storage-count">
@ -1378,12 +1378,12 @@ function wp_dashboard_empty() {}
function wp_welcome_panel() {
?>
<div class="welcome-panel-content">
<h3><?php _e( 'Welcome to WordPress!' ); ?></h3>
<h2><?php _e( 'Welcome to WordPress!' ); ?></h2>
<p class="about-description"><?php _e( 'We&#8217;ve assembled some links to get you started:' ); ?></p>
<div class="welcome-panel-column-container">
<div class="welcome-panel-column">
<?php if ( current_user_can( 'customize' ) ): ?>
<h4><?php _e( 'Get Started' ); ?></h4>
<h3><?php _e( 'Get Started' ); ?></h3>
<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>
<?php endif; ?>
<a class="button button-primary button-hero hide-if-customize" href="<?php echo admin_url( 'themes.php' ); ?>"><?php _e( 'Customize Your Site' ); ?></a>
@ -1392,7 +1392,7 @@ function wp_welcome_panel() {
<?php endif; ?>
</div>
<div class="welcome-panel-column">
<h4><?php _e( 'Next Steps' ); ?></h4>
<h3><?php _e( 'Next Steps' ); ?></h3>
<ul>
<?php if ( 'page' == get_option( 'show_on_front' ) && ! get_option( 'page_for_posts' ) ) : ?>
<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>
@ -1409,7 +1409,7 @@ function wp_welcome_panel() {
</ul>
</div>
<div class="welcome-panel-column welcome-panel-last">
<h4><?php _e( 'More Actions' ); ?></h4>
<h3><?php _e( 'More Actions' ); ?></h3>
<ul>
<?php if ( current_theme_supports( 'widgets' ) || current_theme_supports( 'menus' ) ) : ?>
<li><div class="welcome-icon welcome-widgets-menus"><?php

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-beta1-35413';
$wp_version = '4.4-beta1-35414';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.