diff --git a/docs/reference-guides/slotfills/main-dashboard-button.md b/docs/reference-guides/slotfills/main-dashboard-button.md index b55ed50648db1..593c5c57ca297 100644 --- a/docs/reference-guides/slotfills/main-dashboard-button.md +++ b/docs/reference-guides/slotfills/main-dashboard-button.md @@ -33,7 +33,7 @@ registerPlugin( 'main-dashboard-button-test', { ### Change the icon and link -This example will change the icon in the header to indicate an external link that will take the user to http://wordpress.org when clicked. +This example will change the icon in the header to indicate an external link that will take the user to https://wordpress.org when clicked. ```js import { registerPlugin } from '@wordpress/plugins'; @@ -45,7 +45,7 @@ import { external } from '@wordpress/icons'; const MainDashboardButtonIconTest = () => ( - + ); @@ -54,4 +54,4 @@ registerPlugin( 'main-dashboard-button-icon-test', { } ); ``` -![The edit post screen in fullscreen mode displaying an external link icon instead of the default W](https://developer.wordpress.org/files/2024/08/main-dashboard-button-external-link-example.png 'Change the icon in the header to indicate an external link that will take the user to http://wordpress.org when clicked') +![The edit post screen in fullscreen mode displaying an external link icon instead of the default W](https://developer.wordpress.org/files/2024/08/main-dashboard-button-external-link-example.png 'Change the icon in the header to indicate an external link that will take the user to https://wordpress.org when clicked') diff --git a/packages/block-library/src/navigation-submenu/index.js b/packages/block-library/src/navigation-submenu/index.js index 69e97fb85325a..f5eb1e2346d76 100644 --- a/packages/block-library/src/navigation-submenu/index.js +++ b/packages/block-library/src/navigation-submenu/index.js @@ -2,6 +2,7 @@ * WordPress dependencies */ import { page, addSubmenu } from '@wordpress/icons'; +import { _x } from '@wordpress/i18n'; /** * Internal dependencies @@ -37,6 +38,12 @@ export const settings = { return label; }, edit, + example: { + attributes: { + label: _x( 'About', 'Example link text for Navigation Submenu' ), + type: 'page', + }, + }, save, transforms, };