Skip to content

Commit

Permalink
Blocks: Rename Subhead to Subtitle
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed May 10, 2018
1 parent e41759d commit 862d905
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core-blocks/heading/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const settings = {

category: 'common',

keywords: [ __( 'title' ), __( 'subtitle' ) ],
keywords: [ __( 'title' ) ],

supports: {
className: false,
Expand Down
8 changes: 5 additions & 3 deletions core-blocks/subhead/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -88,7 +90,7 @@ export const settings = {
} }
style={ { textAlign: align } }
className={ className }
placeholder={ placeholder || __( 'Write subheading…' ) }
placeholder={ placeholder || __( 'Write subtitle…' ) }
/>
</Fragment>
);
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 862d905

Please sign in to comment.