diff --git a/packages/edit-site/src/components/editor/index.js b/packages/edit-site/src/components/editor/index.js index ce12a2aa5fa6b7..1d3fca36f5f4c0 100644 --- a/packages/edit-site/src/components/editor/index.js +++ b/packages/edit-site/src/components/editor/index.js @@ -169,8 +169,8 @@ export default function Editor( { listViewToggleElement, isLoading } ) { let title; if ( hasLoadedPost ) { 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' ), + // translators: A breadcrumb trail for the Admin document title. %1$s: title of template being edited, %2$s: type of template (Template or Template Part). + __( '%1$s ‹ %2$s' ), getTitle(), POST_TYPE_LABELS[ editedPostType ] ?? POST_TYPE_LABELS[ TEMPLATE_POST_TYPE ] diff --git a/packages/edit-site/src/components/routes/use-title.js b/packages/edit-site/src/components/routes/use-title.js index 6d06c593dd253a..775f3659778748 100644 --- a/packages/edit-site/src/components/routes/use-title.js +++ b/packages/edit-site/src/components/routes/use-title.js @@ -38,8 +38,8 @@ export default function useTitle( title ) { if ( title && siteTitle ) { // @see https://github.com/WordPress/wordpress-develop/blob/94849898192d271d533e09756007e176feb80697/src/wp-admin/admin-header.php#L67-L68 const formattedTitle = sprintf( - /* translators: Admin screen title. 1: Admin screen name, 2: Network or site name. */ - __( '%1$s ‹ %2$s — WordPress' ), + /* translators: Admin document title. 1: Admin screen name, 2: Network or site name. */ + __( '%1$s ‹ %2$s ‹ Editor — WordPress' ), decodeEntities( title ), decodeEntities( siteTitle ) ); @@ -47,14 +47,7 @@ export default function useTitle( title ) { document.title = formattedTitle; // Announce title on route change for screen readers. - speak( - sprintf( - /* translators: The page title that is currently displaying. */ - __( 'Now displaying: %s' ), - document.title - ), - 'assertive' - ); + speak( title, 'assertive' ); } }, [ title, siteTitle, location ] ); }