From a564edd6053243ee3218129b17bf651f166e19c9 Mon Sep 17 00:00:00 2001 From: Koen Van den Wijngaert Date: Fri, 23 Apr 2021 11:44:38 +0200 Subject: [PATCH] Add link to `options-general.php` in the site title description --- packages/block-library/src/site-title/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/block-library/src/site-title/index.js b/packages/block-library/src/site-title/index.js index c425e41c5100a8..3f4cee5868c1c3 100644 --- a/packages/block-library/src/site-title/index.js +++ b/packages/block-library/src/site-title/index.js @@ -2,6 +2,8 @@ * WordPress dependencies */ import { mapMarker as icon } from '@wordpress/icons'; +import { createInterpolateElement } from '@wordpress/element'; +import { __ } from '@wordpress/i18n'; /** * Internal dependencies @@ -13,6 +15,13 @@ const { name } = metadata; export { metadata, name }; export const settings = { + description: createInterpolateElement( + __( + 'Displays and allows editing the name of the site. The site title usually appears in the browser title bar, in search results, and more. Also available in Settings > General.' + ), + // eslint-disable-next-line jsx-a11y/anchor-has-content + { a: } + ), icon, edit, };