File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -309,17 +309,17 @@ function wp_dashboard_right_now() {
309309 if ( $ num_posts && $ num_posts ->publish ) {
310310 if ( 'post ' === $ post_type ) {
311311 /* translators: %s: Number of posts. */
312- $ text = _n ( '%s Post ' , '%s Posts ' , $ num_posts ->publish );
312+ $ text = _n ( '%s Published post ' , '%s Published posts ' , $ num_posts ->publish );
313313 } else {
314314 /* translators: %s: Number of pages. */
315- $ text = _n ( '%s Page ' , '%s Pages ' , $ num_posts ->publish );
315+ $ text = _n ( '%s Published page ' , '%s Published pages ' , $ num_posts ->publish );
316316 }
317317
318318 $ text = sprintf ( $ text , number_format_i18n ( $ num_posts ->publish ) );
319319 $ post_type_object = get_post_type_object ( $ post_type );
320320
321321 if ( $ post_type_object && current_user_can ( $ post_type_object ->cap ->edit_posts ) ) {
322- printf ( '<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s</a></li> ' , $ post_type , $ text );
322+ printf ( '<li class="%1$s-count"><a href="edit.php?post_status=publish& post_type=%1$s">%2$s</a></li> ' , $ post_type , $ text );
323323 } else {
324324 printf ( '<li class="%1$s-count"><span>%2$s</span></li> ' , $ post_type , $ text );
325325 }
You can’t perform that action at this time.
0 commit comments