Skip to content
Open
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: 3 additions & 3 deletions src/wp-admin/includes/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,17 +309,17 @@ 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 );

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the "Published post" label to "Published Post" to ensure consistent capitalization.

} 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 );

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the "Published page" label to "Published Page" to ensure consistent capitalization.

}

$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 );
printf( '<li class="%1$s-count"><a href="edit.php?post_status=publish&post_type=%1$s">%2$s</a></li>', $post_type, $text );
} else {
printf( '<li class="%1$s-count"><span>%2$s</span></li>', $post_type, $text );
}
Expand Down
Loading