Skip to content

Commit 1f84b51

Browse files
committed
Administration: Revert the On This Day section of the Activity widget.
The On This Day section of the Activity widget has been removed from the WordPress 7.2 release. This restores the Recent Comments section to the Activity widget and removes the dedicated Recent Comments dashboard widget. This reverts r64593. Reviewed by audrasjb. Props annezazu. See #65116. git-svn-id: https://develop.svn.wordpress.org/trunk@65732 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 809c013 commit 1f84b51

4 files changed

Lines changed: 34 additions & 687 deletions

File tree

‎src/wp-admin/_index.php‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,7 @@
8686
$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>';
8787
}
8888

89-
$help .= '<p>' . __( '<strong>Activity</strong> &mdash; Shows upcoming scheduled posts, recently published posts, and posts published on this day in previous years.' ) . '</p>';
90-
91-
if ( _wp_dashboard_has_received_comments() ) {
92-
$help .= '<p>' . __( '<strong>Recent Comments</strong> &mdash; Shows the most recent comments on your posts and allows you to moderate them.' ) . '</p>';
93-
}
89+
$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>';
9490

9591
if ( is_blog_admin() && current_user_can( 'edit_posts' ) ) {
9692
$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>';

‎src/wp-admin/css/dashboard.css‎

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ body #dashboard-widgets .postbox form .submit {
879879

880880
/* Dashboard activity widget */
881881

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

893-
#dashboard_activity .inside,
894-
#dashboard_recent_comments .inside {
893+
#dashboard_activity .inside {
895894
margin: 0;
896895
padding: 0 12px;
897896
}
@@ -907,27 +906,25 @@ body #dashboard-widgets .postbox form .submit {
907906
font-size: 16px;
908907
}
909908

910-
#dashboard_recent_comments .subsubsub {
909+
#dashboard_activity .subsubsub {
911910
float: none;
912911
border-top: 1px solid #f0f0f1;
913912
margin: 0 -12px;
914913
padding: 8px 12px 4px;
915914
}
916915

917-
#dashboard_recent_comments .subsubsub a .count,
918-
#dashboard_recent_comments .subsubsub a.current .count {
916+
#dashboard_activity .subsubsub a .count,
917+
#dashboard_activity .subsubsub a.current .count {
919918
color: #646970; /* white background on the dashboard but #f0f0f1 on list tables */
920919
}
921920

922921
#future-posts ul,
923-
#published-posts ul,
924-
#on-this-day-posts ul {
922+
#published-posts ul {
925923
margin: 8px -12px 0 -12px;
926924
}
927925

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

938935
#future-posts li:nth-child(odd),
939-
#published-posts li:nth-child(odd),
940-
#on-this-day-posts li:nth-child(odd) {
936+
#published-posts li:nth-child(odd) {
941937
background-color: #f6f7f7;
942938
}
943939

944-
#on-this-day-posts .wp-on-this-day-post-author {
945-
color: #646970;
946-
}
947-
948940
.activity-block {
949941
border-bottom: 1px solid #f0f0f1;
950942
margin: 0 -12px 6px -12px;
@@ -963,45 +955,45 @@ body #dashboard-widgets .postbox form .submit {
963955
/* Dashboard activity widget - Comments */
964956
/* @todo: needs serious de-duplication */
965957

966-
#dashboard_recent_comments #the-comment-list tr.undo,
967-
#dashboard_recent_comments #the-comment-list div.undo {
958+
#activity-widget #the-comment-list tr.undo,
959+
#activity-widget #the-comment-list div.undo {
968960
background: none;
969961
padding: 6px 0;
970962
margin-left: 12px;
971963
}
972964

973-
#dashboard_recent_comments #the-comment-list .comment-item {
965+
#activity-widget #the-comment-list .comment-item {
974966
background: #f6f7f7;
975967
padding: 12px;
976968
position: relative;
977969
}
978970

979-
#dashboard_recent_comments #the-comment-list .avatar {
971+
#activity-widget #the-comment-list .avatar {
980972
position: absolute;
981973
top: 12px;
982974
}
983975

984-
#dashboard_recent_comments #the-comment-list .dashboard-comment-wrap.has-avatar {
976+
#activity-widget #the-comment-list .dashboard-comment-wrap.has-avatar {
985977
padding-left: 63px;
986978
}
987979

988-
#dashboard_recent_comments #the-comment-list .dashboard-comment-wrap blockquote {
980+
#activity-widget #the-comment-list .dashboard-comment-wrap blockquote {
989981
margin: 1em 0;
990982
}
991983

992-
#dashboard_recent_comments #the-comment-list .comment-item p.row-actions {
984+
#activity-widget #the-comment-list .comment-item p.row-actions {
993985
margin: 4px 0 0;
994986
}
995987

996-
#dashboard_recent_comments #the-comment-list .comment-item:first-child {
988+
#activity-widget #the-comment-list .comment-item:first-child {
997989
border-top: 1px solid #f0f0f1;
998990
}
999991

1000-
#dashboard_recent_comments #the-comment-list .unapproved {
992+
#activity-widget #the-comment-list .unapproved {
1001993
background-color: #fcf9e8;
1002994
}
1003995

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

1015-
#dashboard_recent_comments #the-comment-list .spam-undo-inside .avatar,
1016-
#dashboard_recent_comments #the-comment-list .trash-undo-inside .avatar {
1007+
#activity-widget #the-comment-list .spam-undo-inside .avatar,
1008+
#activity-widget #the-comment-list .trash-undo-inside .avatar {
10171009
position: relative;
10181010
top: 0;
10191011
}

0 commit comments

Comments
 (0)