From 862d905bdf9092734d538c92e2433328af31bcb4 Mon Sep 17 00:00:00 2001 From: Grzegorz Ziolkowski Date: Thu, 10 May 2018 12:40:25 +0200 Subject: [PATCH] Blocks: Rename Subhead to Subtitle --- core-blocks/heading/index.js | 2 +- core-blocks/subhead/index.js | 8 +++++--- docs/reference/faq.md | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/core-blocks/heading/index.js b/core-blocks/heading/index.js index def9872def011..033fcf5342b8b 100644 --- a/core-blocks/heading/index.js +++ b/core-blocks/heading/index.js @@ -22,7 +22,7 @@ export const settings = { category: 'common', - keywords: [ __( 'title' ), __( 'subtitle' ) ], + keywords: [ __( 'title' ) ], supports: { className: false, diff --git a/core-blocks/subhead/index.js b/core-blocks/subhead/index.js index f5e56c47071c5..47b0e6c61845b 100644 --- a/core-blocks/subhead/index.js +++ b/core-blocks/subhead/index.js @@ -19,14 +19,16 @@ import './style.scss'; export const name = 'core/subhead'; export const settings = { - title: __( 'Subheading' ), + title: __( 'Subtitle' ), - description: __( 'What\'s a subhead? Smaller than a headline, bigger than basic text.' ), + description: __( 'What\'s a subtitle? Smaller than a headline, bigger than basic text.' ), icon: 'text', category: 'common', + keywords: [ __( 'subheading' ) ], + useOnce: true, attributes: { @@ -88,7 +90,7 @@ export const settings = { } } style={ { textAlign: align } } className={ className } - placeholder={ placeholder || __( 'Write subheading…' ) } + placeholder={ placeholder || __( 'Write subtitle…' ) } /> ); diff --git a/docs/reference/faq.md b/docs/reference/faq.md index 6fdf499268d18..ab1ccaaf585fa 100644 --- a/docs/reference/faq.md +++ b/docs/reference/faq.md @@ -30,7 +30,7 @@ The current WordPress editor is an open text window—it’s always been a wonde - Pasted links for embeds. - `Shortcodes` for specialized assets from plugins. - Featured images for the image at the top of a post or page. -- Excerpts for subheadings. +- Excerpts for subtitles. - Widgets for content on the side of a page. As we thought about these uses and how to make them obvious and consistent, we began to embrace the concept of “blocks.” All of the above items could be blocks: easy to search and understand, and easy to dynamically shift around the page. The block concept is very powerful, and if designed thoughtfully, can offer an outstanding editing and publishing experience.