From 1b293ab6db297e2e874eebe3f8abbab480bf6503 Mon Sep 17 00:00:00 2001 From: Sarah Norris Date: Fri, 23 Jun 2023 18:43:10 +0100 Subject: [PATCH] Add placeholders to Recommended Plugin inputs --- admin/create-theme/theme-form.php | 10 +++++++++- src/editor-sidebar/update-panel.js | 4 ++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/admin/create-theme/theme-form.php b/admin/create-theme/theme-form.php index 2137a7f8..e9f12d96 100644 --- a/admin/create-theme/theme-form.php +++ b/admin/create-theme/theme-form.php @@ -197,7 +197,15 @@ public static function create_admin_form_page() { ); ?>
- + +

diff --git a/src/editor-sidebar/update-panel.js b/src/editor-sidebar/update-panel.js index 40643b35..e13e4219 100644 --- a/src/editor-sidebar/update-panel.js +++ b/src/editor-sidebar/update-panel.js @@ -208,6 +208,10 @@ export const UpdateThemePanel = () => { } + // eslint-disable-next-line @wordpress/i18n-no-collapsible-whitespace + placeholder={ __( `Plugin Name +https://wordpress.org/plugins/plugin-name/ +Plugin Description` ) } value={ theme.recommended_plugins } onChange={ ( value ) => setTheme( { ...theme, recommended_plugins: value } )