Skip to content

Commit

Permalink
Add placeholders to Recommended Plugin inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikachan committed Jun 23, 2023
1 parent 5c6ca89 commit 1b293ab
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 9 additions & 1 deletion admin/create-theme/theme-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,15 @@ public static function create_admin_form_page() {
);
?>
</small><br />
<textarea rows="4" cols="50" name="theme[recommended_plugins]" class="large-text"></textarea>
<?php
$recommended_plugins_placeholder = __(
'Plugin Name
https://wordpress.org/plugins/plugin-name/
Plugin Description',
'create-block-theme'
);
?>
<textarea placeholder="<?php echo $recommended_plugins_placeholder; ?>" rows="4" cols="50" name="theme[recommended_plugins]" class="large-text"></textarea>
<br /><br />
</label>
<div>
Expand Down
4 changes: 4 additions & 0 deletions src/editor-sidebar/update-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ export const UpdateThemePanel = () => {
</ExternalLink>
</>
}
// 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 } )
Expand Down

0 comments on commit 1b293ab

Please sign in to comment.