Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/wp-admin/_index.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,7 @@
$help .= '<p>' . __( '<strong>At a Glance</strong> &mdash; Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.' ) . '</p>';
}

$help .= '<p>' . __( '<strong>Activity</strong> &mdash; Shows upcoming scheduled posts, recently published posts, and posts published on this day in previous years.' ) . '</p>';

if ( _wp_dashboard_has_received_comments() ) {
$help .= '<p>' . __( '<strong>Recent Comments</strong> &mdash; Shows the most recent comments on your posts and allows you to moderate them.' ) . '</p>';
}
$help .= '<p>' . __( '<strong>Activity</strong> &mdash; Shows the upcoming scheduled posts, recently published posts, and the most recent comments on your posts and allows you to moderate them.' ) . '</p>';

if ( is_blog_admin() && current_user_can( 'edit_posts' ) ) {
$help .= '<p>' . __( "<strong>Quick Draft</strong> &mdash; Allows you to create a new post and save it as a draft. Also displays links to the 3 most recent draft posts you've started." ) . '</p>';
Expand Down
48 changes: 20 additions & 28 deletions src/wp-admin/css/dashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ body #dashboard-widgets .postbox form .submit {

/* Dashboard activity widget */

#dashboard_recent_comments .comment-meta span.approve::before {
#dashboard_activity .comment-meta span.approve::before {
content: "\f227";
content: "\f227" / "";
font: 20px/0.5 dashicons;
Expand All @@ -890,8 +890,7 @@ body #dashboard-widgets .postbox form .submit {
margin-right: 2px;
}

#dashboard_activity .inside,
#dashboard_recent_comments .inside {
#dashboard_activity .inside {
margin: 0;
padding: 0 12px;
}
Expand All @@ -907,27 +906,25 @@ body #dashboard-widgets .postbox form .submit {
font-size: 16px;
}

#dashboard_recent_comments .subsubsub {
#dashboard_activity .subsubsub {
float: none;
border-top: 1px solid #f0f0f1;
margin: 0 -12px;
padding: 8px 12px 4px;
}

#dashboard_recent_comments .subsubsub a .count,
#dashboard_recent_comments .subsubsub a.current .count {
#dashboard_activity .subsubsub a .count,
#dashboard_activity .subsubsub a.current .count {
color: #646970; /* white background on the dashboard but #f0f0f1 on list tables */
}

#future-posts ul,
#published-posts ul,
#on-this-day-posts ul {
#published-posts ul {
margin: 8px -12px 0 -12px;
}

#future-posts li,
#published-posts li,
#on-this-day-posts li {
#published-posts li {
display: grid;
grid-template-columns: clamp(160px, calc(2vw + 140px), 200px) auto;
column-gap: 10px;
Expand All @@ -936,15 +933,10 @@ body #dashboard-widgets .postbox form .submit {
}

#future-posts li:nth-child(odd),
#published-posts li:nth-child(odd),
#on-this-day-posts li:nth-child(odd) {
#published-posts li:nth-child(odd) {
background-color: #f6f7f7;
}

#on-this-day-posts .wp-on-this-day-post-author {
color: #646970;
}

.activity-block {
border-bottom: 1px solid #f0f0f1;
margin: 0 -12px 6px -12px;
Expand All @@ -963,45 +955,45 @@ body #dashboard-widgets .postbox form .submit {
/* Dashboard activity widget - Comments */
/* @todo: needs serious de-duplication */

#dashboard_recent_comments #the-comment-list tr.undo,
#dashboard_recent_comments #the-comment-list div.undo {
#activity-widget #the-comment-list tr.undo,
#activity-widget #the-comment-list div.undo {
background: none;
padding: 6px 0;
margin-left: 12px;
}

#dashboard_recent_comments #the-comment-list .comment-item {
#activity-widget #the-comment-list .comment-item {
background: #f6f7f7;
padding: 12px;
position: relative;
}

#dashboard_recent_comments #the-comment-list .avatar {
#activity-widget #the-comment-list .avatar {
position: absolute;
top: 12px;
}

#dashboard_recent_comments #the-comment-list .dashboard-comment-wrap.has-avatar {
#activity-widget #the-comment-list .dashboard-comment-wrap.has-avatar {
padding-left: 63px;
}

#dashboard_recent_comments #the-comment-list .dashboard-comment-wrap blockquote {
#activity-widget #the-comment-list .dashboard-comment-wrap blockquote {
margin: 1em 0;
}

#dashboard_recent_comments #the-comment-list .comment-item p.row-actions {
#activity-widget #the-comment-list .comment-item p.row-actions {
margin: 4px 0 0;
}

#dashboard_recent_comments #the-comment-list .comment-item:first-child {
#activity-widget #the-comment-list .comment-item:first-child {
border-top: 1px solid #f0f0f1;
}

#dashboard_recent_comments #the-comment-list .unapproved {
#activity-widget #the-comment-list .unapproved {
background-color: #fcf9e8;
}

#dashboard_recent_comments #the-comment-list .unapproved::before {
#activity-widget #the-comment-list .unapproved::before {
content: "";
display: block;
position: absolute;
Expand All @@ -1012,8 +1004,8 @@ body #dashboard-widgets .postbox form .submit {
width: 4px;
}

#dashboard_recent_comments #the-comment-list .spam-undo-inside .avatar,
#dashboard_recent_comments #the-comment-list .trash-undo-inside .avatar {
#activity-widget #the-comment-list .spam-undo-inside .avatar,
#activity-widget #the-comment-list .trash-undo-inside .avatar {
position: relative;
top: 0;
}
Expand Down
Loading
Loading