Skip to content

Commit

Permalink
Site Editor: Fix the typo in the title label map (#53071)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Jul 28, 2023
1 parent 4a1e918 commit d1f894b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/edit-site/src/components/editor/index.js
Expand Up @@ -58,7 +58,7 @@ const interfaceLabels = {
};

const typeLabels = {
wp_template: __( 'Template Part' ),
wp_template: __( 'Template' ),
wp_template_part: __( 'Template Part' ),
wp_block: __( 'Pattern' ),
};
Expand Down Expand Up @@ -165,12 +165,11 @@ export default function Editor( { isLoading } ) {

let title;
if ( hasLoadedPost ) {
const type = typeLabels[ editedPostType ] ?? __( 'Template' );
title = sprintf(
// translators: A breadcrumb trail in browser tab. %1$s: title of template being edited, %2$s: type of template (Template or Template Part).
__( '%1$s ‹ %2$s ‹ Editor' ),
getTitle(),
type
typeLabels[ editedPostType ] ?? typeLabels.wp_template
);
}

Expand Down

1 comment on commit d1f894b

@github-actions
Copy link

Choose a reason for hiding this comment

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

Flaky tests detected in d1f894b.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5687858613
📝 Reported issues:

Please sign in to comment.