From 7eec8a988f1899a96e35ddbdf67c74d9d27f3d09 Mon Sep 17 00:00:00 2001 From: Alex Stine Date: Wed, 15 Nov 2023 12:34:59 -0600 Subject: [PATCH] Site editor: Remove screen reader title announcement. --- packages/edit-site/src/components/routes/use-title.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/edit-site/src/components/routes/use-title.js b/packages/edit-site/src/components/routes/use-title.js index 6d06c593dd253a..f4534003845a35 100644 --- a/packages/edit-site/src/components/routes/use-title.js +++ b/packages/edit-site/src/components/routes/use-title.js @@ -5,7 +5,6 @@ import { useEffect, useRef } from '@wordpress/element'; import { useSelect } from '@wordpress/data'; import { store as coreStore } from '@wordpress/core-data'; import { __, sprintf } from '@wordpress/i18n'; -import { speak } from '@wordpress/a11y'; import { decodeEntities } from '@wordpress/html-entities'; import { privateApis as routerPrivateApis } from '@wordpress/router'; @@ -45,16 +44,6 @@ 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' - ); } }, [ title, siteTitle, location ] ); }