Skip to content

Commit

Permalink
Add link to options-general.php in the site title description
Browse files Browse the repository at this point in the history
  • Loading branch information
vdwijngaert committed May 10, 2021
1 parent a85b8eb commit a564edd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/block-library/src/site-title/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* WordPress dependencies
*/
import { mapMarker as icon } from '@wordpress/icons';
import { createInterpolateElement } from '@wordpress/element';
import { __ } from '@wordpress/i18n';

/**
* Internal dependencies
Expand All @@ -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 <a>Settings > General</a>.'
),
// eslint-disable-next-line jsx-a11y/anchor-has-content
{ a: <a href="options-general.php" target="_blank" /> }
),
icon,
edit,
};

0 comments on commit a564edd

Please sign in to comment.