Skip to content

Commit a50d231

Browse files
t-hamanoMamaduka
andauthored
Editor: Fix incorrect title when multiple post selected (#70997)
Co-authored-by: t-hamano <[email protected]> Co-authored-by: Mamaduka <[email protected]>
1 parent b058141 commit a50d231

File tree

1 file changed

+3
-3
lines changed
  • packages/editor/src/components/post-card-panel

1 file changed

+3
-3
lines changed

packages/editor/src/components/post-card-panel/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ export default function PostCardPanel( {
8888
let title = __( 'No title' );
8989
if ( labels?.name && postIds.length > 1 ) {
9090
title = sprintf(
91-
// translators: %i number of selected items %s: Name of the plural post type e.g: "Posts".
92-
__( '%i %s' ),
93-
postId.length,
91+
// translators: %1$d number of selected items %2$s: Name of the plural post type e.g: "Posts".
92+
__( '%1$d %2$s' ),
93+
postIds.length,
9494
labels?.name
9595
);
9696
} else if ( postTitle ) {

0 commit comments

Comments
 (0)