From 2277f4557dcc7870a35a7afdb0bab5ca31f2344e Mon Sep 17 00:00:00 2001 From: Jeremy Herve Date: Thu, 13 Apr 2023 08:18:10 +0200 Subject: [PATCH] Blocks: update CLI to only input strings in descriptions See #26792 --- projects/plugins/jetpack/changelog/update-block-skeleton | 4 ++++ .../jetpack/wp-cli-templates/block-index-js.mustache | 7 +------ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 projects/plugins/jetpack/changelog/update-block-skeleton diff --git a/projects/plugins/jetpack/changelog/update-block-skeleton b/projects/plugins/jetpack/changelog/update-block-skeleton new file mode 100644 index 0000000000000..a5bf720425eda --- /dev/null +++ b/projects/plugins/jetpack/changelog/update-block-skeleton @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +Blocks: update block cli structure to only use strings in descriptions diff --git a/projects/plugins/jetpack/wp-cli-templates/block-index-js.mustache b/projects/plugins/jetpack/wp-cli-templates/block-index-js.mustache index a21aa540a4fd6..5f01b5ccda709 100644 --- a/projects/plugins/jetpack/wp-cli-templates/block-index-js.mustache +++ b/projects/plugins/jetpack/wp-cli-templates/block-index-js.mustache @@ -15,12 +15,7 @@ export const name = '{{ slug }}'; export const title = __( '{{ title }}', 'jetpack' ); export const settings = { title, - description: ( - -

{ __( '{{ description }}', 'jetpack' ) }

- { __( 'Learn more about {{ title }}', 'jetpack' ) } -
- ), + description: __( '{{ description }}', 'jetpack' ), icon: { src: icon, foreground: getIconColor(),