Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Jun 21, 2022
1 parent 054e365 commit 72f9f83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ function SuggestionListItem( {
);
onSelect( {
title,
description: `Template for ${ title }`,
description: sprintf(
// translators: Represents the description of a user's custom template in the Site Editor, e.g. "Template for Post: Hello, WordPress"
__( 'Template for %1$s' ),
title
),
slug: `single-${ entityForSuggestions.slug }-${ suggestion.slug }`,
} );
} }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ export default function NewTemplate( { postType } ) {
return null;
}
// Update the sort order to match the DEFAULT_TEMPLATE_SLUGS order.
// TODO: check sorting with new items.
missingTemplates?.sort( ( template1, template2 ) => {
return (
DEFAULT_TEMPLATE_SLUGS.indexOf( template1.slug ) -
Expand Down

0 comments on commit 72f9f83

Please sign in to comment.