diff --git a/src/js/_enqueues/admin/edit-comments.js b/src/js/_enqueues/admin/edit-comments.js index 7e89f1c0dd7cb..a8c869f6d33dc 100644 --- a/src/js/_enqueues/admin/edit-comments.js +++ b/src/js/_enqueues/admin/edit-comments.js @@ -152,7 +152,7 @@ var getCount, updateCount, updateCountText, updatePending, updateApproved, return; } - $( '.comment-count a', '#dashboard_right_now' ).text( response.i18n_comments_text ); + $( '.comment-count .comments-count-text', '#dashboard_right_now' ).text( response.i18n_comments_text ); }; /** diff --git a/src/wp-admin/css/dashboard.css b/src/wp-admin/css/dashboard.css index a79960cb39419..18e86b61e05c0 100644 --- a/src/wp-admin/css/dashboard.css +++ b/src/wp-admin/css/dashboard.css @@ -442,41 +442,25 @@ content: "\f159" / ""; } -#dashboard_right_now .page-count a::before, -#dashboard_right_now .page-count span::before { - content: "\f105"; - content: "\f105" / ""; -} - -#dashboard_right_now .post-count a::before, -#dashboard_right_now .post-count span::before { - content: "\f109"; - content: "\f109" / ""; -} - -#dashboard_right_now .comment-count a::before { - content: "\f101"; - content: "\f101" / ""; -} - -#dashboard_right_now .comment-mod-count a::before { - content: "\f125"; - content: "\f125" / ""; +#dashboard_right_now li .glance-item::before, +#dashboard_right_now .search-engines-info::before { + display: none; } -#dashboard_right_now .storage-count a::before { - content: "\f104"; - content: "\f104" / ""; +#dashboard_right_now .glance-item { + display: inline-flex; + align-items: center; + gap: 5px; } -#dashboard_right_now .storage-count.warning a::before { - content: "\f153"; - content: "\f153" / ""; +#dashboard_right_now .glance-item svg { + flex: none; + fill: currentColor; + color: #646970; } -#dashboard_right_now .search-engines-info::before { - content: "\f348"; - content: "\f348" / ""; +#dashboard_right_now .warning .glance-item svg, +#dashboard_right_now .search-engines-info svg { color: #d63638; } diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index 165b556f9eb85..645e73c77ee7d 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -349,6 +349,7 @@ function wp_dashboard_right_now() { $text = sprintf( $text, number_format_i18n( $num_posts->publish ) ); $post_type_object = get_post_type_object( $post_type ); + $icon = wp_get_icon( 'post' === $post_type ? 'core-admin/pin' : 'core-admin/page', array( 'size' => 20 ) ); if ( $post_type_object && current_user_can( $post_type_object->cap->edit_posts ) ) { $url = add_query_arg( @@ -358,9 +359,9 @@ function wp_dashboard_right_now() { ), admin_url( 'edit.php' ) ); - printf( '