Commit c25d7bc8b6 for wordpress.org

commit c25d7bc8b687b867852d520ed425f8d716835377
Author: joedolson <joedolson@git.wordpress.org>
Date:   Thu Jan 29 20:09:41 2026 +0000

    Posts, Post Types: Clarify "at a glance" Dashboard links.

    "At a glance" links in the dashboard were labeled with the count of published posts, but linked to the All posts view. Change the links so that they target only the published posts list and update link text to clarify.

    Props awardpress, birgire, benpinales, susiyanti, sergeybiryukov, sirlouen, noruzzaman, huzaifaalmesbah, westonruter, nikunj8866, joedolson.
    Fixes #43084.
    Built from https://develop.svn.wordpress.org/trunk@61555


    git-svn-id: http://core.svn.wordpress.org/trunk@60866 1a063a9b-81f0-0310-95a4-ce76da25c4cd

diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php
index 6cb0c881f9..bba47a1c34 100644
--- a/wp-admin/includes/dashboard.php
+++ b/wp-admin/includes/dashboard.php
@@ -309,17 +309,24 @@ function wp_dashboard_right_now() {
 		if ( $num_posts && $num_posts->publish ) {
 			if ( 'post' === $post_type ) {
 				/* translators: %s: Number of posts. */
-				$text = _n( '%s Post', '%s Posts', $num_posts->publish );
+				$text = _n( '%s Published post', '%s Published posts', $num_posts->publish );
 			} else {
 				/* translators: %s: Number of pages. */
-				$text = _n( '%s Page', '%s Pages', $num_posts->publish );
+				$text = _n( '%s Published page', '%s Published pages', $num_posts->publish );
 			}

 			$text             = sprintf( $text, number_format_i18n( $num_posts->publish ) );
 			$post_type_object = get_post_type_object( $post_type );

 			if ( $post_type_object && current_user_can( $post_type_object->cap->edit_posts ) ) {
-				printf( '<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s</a></li>', $post_type, $text );
+				$url = add_query_arg(
+					array(
+						'post_status' => 'publish',
+						'post_type'   => $post_type,
+					),
+					admin_url( 'edit.php' )
+				);
+				printf( '<li class="%1$s-count"><a href="%1$s">%2$s</a></li>', esc_url( $url ), esc_html( $text ) );
 			} else {
 				printf( '<li class="%1$s-count"><span>%2$s</span></li>', $post_type, $text );
 			}
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 4b5c961e9c..aea9eca10a 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '7.0-alpha-61554';
+$wp_version = '7.0-alpha-61555';

 /**
  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.