Skip to content

Commit

Permalink
Try different block descriptions (#10971)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tammie Lister authored and youknowriad committed Oct 30, 2018
1 parent 0e83c98 commit db728b7
Show file tree
Hide file tree
Showing 29 changed files with 62 additions and 26 deletions.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/block-library/src/archives/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const name = 'core/archives';
export const settings = {
title: __( 'Archives' ),

description: __( 'Display a monthly archive of your site’s Posts.' ),
description: __( 'Display a monthly archive of your posts.' ),

icon: <SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><Path fill="none" d="M0 0h24v24H0V0z" /><G><Path d="M7 11h2v2H7v-2zm14-5v14l-2 2H5l-2-2V6l2-2h1V2h2v2h8V2h2v2h1l2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z" /></G></SVG>,

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/audio/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const name = 'core/audio';
export const settings = {
title: __( 'Audio' ),

description: __( 'Embed an audio file and a simple audio player.' ),
description: __( 'Embed a simple audio player.' ),

icon: <SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><Path d="M0,0h24v24H0V0z" fill="none" /><Path d="m12 3l0.01 10.55c-0.59-0.34-1.27-0.55-2-0.55-2.22 0-4.01 1.79-4.01 4s1.79 4 4.01 4 3.99-1.79 3.99-4v-10h4v-4h-6zm-1.99 16c-1.1 0-2-0.9-2-2s0.9-2 2-2 2 0.9 2 2-0.9 2-2 2z" /></SVG>,

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const colorsMigration = ( attributes ) => {
export const settings = {
title: __( 'Button' ),

description: __( 'Want visitors to click to subscribe, buy, or read more? Get their attention with a button.' ),
description: __( 'Prompt visitors to take action with a custom button.' ),

icon: <SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><Path fill="none" d="M0 0h24v24H0V0z" /><G><Path d="M19 6H5L3 8v8l2 2h14l2-2V8l-2-2zm0 10H5V8h14v8z" /></G></SVG>,

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/categories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const name = 'core/categories';
export const settings = {
title: __( 'Categories' ),

description: __( 'Display a list of all your site’s categories.' ),
description: __( 'Display a list of all categories.' ),

icon: <SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><Path d="M0,0h24v24H0V0z" fill="none" /><Path d="M12,2l-5.5,9h11L12,2z M12,5.84L13.93,9h-3.87L12,5.84z" /><Path d="m17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" /><Path d="m3 21.5h8v-8h-8v8zm2-6h4v4h-4v-4z" /></SVG>,

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/classic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const name = 'core/freeform';
export const settings = {
title: _x( 'Classic', 'block title' ),

description: __( 'It’s the classic WordPress editor and it’s a block! Drop the editor right in.' ),
description: __( 'Use the classic WordPress editor.' ),

icon: <SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><Path d="M0,0h24v24H0V0z M0,0h24v24H0V0z" fill="none" /><Path d="m20 7v10h-16v-10h16m0-2h-16c-1.1 0-1.99 0.9-1.99 2l-0.01 10c0 1.1 0.9 2 2 2h16c1.1 0 2-0.9 2-2v-10c0-1.1-0.9-2-2-2z" /><Rect x="11" y="8" width="2" height="2" /><Rect x="11" y="11" width="2" height="2" /><Rect x="8" y="8" width="2" height="2" /><Rect x="8" y="11" width="2" height="2" /><Rect x="5" y="11" width="2" height="2" /><Rect x="5" y="8" width="2" height="2" /><Rect x="8" y="14" width="8" height="2" /><Rect x="14" y="11" width="2" height="2" /><Rect x="14" y="8" width="2" height="2" /><Rect x="17" y="11" width="2" height="2" /><Rect x="17" y="8" width="2" height="2" /></SVG>,

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/code/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const name = 'core/code';
export const settings = {
title: __( 'Code' ),

description: __( 'Add text that respects your spacing and tabs -- perfect for displaying code.' ),
description: __( 'Display code snippets that respect your spacing and tabs.' ),

icon: <SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><Path d="M0,0h24v24H0V0z" fill="none" /><Path d="M9.4,16.6L4.8,12l4.6-4.6L8,6l-6,6l6,6L9.4,16.6z M14.6,16.6l4.6-4.6l-4.6-4.6L16,6l6,6l-6,6L14.6,16.6z" /></SVG>,

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/cover/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const VIDEO_BACKGROUND_TYPE = 'video';
export const settings = {
title: __( 'Cover' ),

description: __( 'Add a full-width image or video, and layer text over it — great for headers.' ),
description: __( 'Add an image or video with a text overlay — great for headers.' ),

icon: <SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><Path d="M4 4h7V2H4c-1.1 0-2 .9-2 2v7h2V4zm6 9l-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5zM20 2h-7v2h7v7h2V4c0-1.1-.9-2-2-2zm0 18h-7v2h7c1.1 0 2-.9 2-2v-7h-2v7zM4 13H2v7c0 1.1.9 2 2 2h7v-2H4v-7z" /><Path d="M0 0h24v24H0z" fill="none" /></SVG>,

Expand Down
33 changes: 33 additions & 0 deletions packages/block-library/src/embed/core-embeds.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const common = [
title: 'Twitter',
icon: embedTwitterIcon,
keywords: [ 'tweet' ],
description: __( 'Embed a tweet' ),
},
patterns: [ /^https?:\/\/(www\.)?twitter\.com\/.+/i ],
},
Expand All @@ -40,6 +41,7 @@ export const common = [
title: 'YouTube',
icon: embedYouTubeIcon,
keywords: [ __( 'music' ), __( 'video' ) ],
description: __( 'Embed a YouTube video' ),
},
patterns: [ /^https?:\/\/((m|www)\.)?youtube\.com\/.+/i, /^https?:\/\/youtu\.be\/.+/i ],
},
Expand All @@ -48,6 +50,7 @@ export const common = [
settings: {
title: 'Facebook',
icon: embedFacebookIcon,
description: __( 'Embed a Facebook post' ),
},
patterns: [ /^https?:\/\/www\.facebook.com\/.+/i ],
},
Expand All @@ -57,6 +60,7 @@ export const common = [
title: 'Instagram',
icon: embedInstagramIcon,
keywords: [ __( 'image' ) ],
description: __( 'Embed an Instagram post' ),
},
patterns: [ /^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i ],
},
Expand All @@ -67,6 +71,7 @@ export const common = [
icon: embedWordPressIcon,
keywords: [ __( 'post' ), __( 'blog' ) ],
responsive: false,
description: __( 'Embed a WordPress post' ),
},
},
{
Expand All @@ -75,6 +80,7 @@ export const common = [
title: 'SoundCloud',
icon: embedAudioIcon,
keywords: [ __( 'music' ), __( 'audio' ) ],
description: __( 'Embed SoundCloud content' ),
},
patterns: [ /^https?:\/\/(www\.)?soundcloud\.com\/.+/i ],
},
Expand All @@ -84,6 +90,7 @@ export const common = [
title: 'Spotify',
icon: embedSpotifyIcon,
keywords: [ __( 'music' ), __( 'audio' ) ],
description: __( 'Embed Spotify content' ),
},
patterns: [ /^https?:\/\/(open|play)\.spotify\.com\/.+/i ],
},
Expand All @@ -93,6 +100,7 @@ export const common = [
title: 'Flickr',
icon: embedFlickrIcon,
keywords: [ __( 'image' ) ],
description: __( 'Embed Flickr content' ),
},
patterns: [ /^https?:\/\/(www\.)?flickr\.com\/.+/i, /^https?:\/\/flic\.kr\/.+/i ],
},
Expand All @@ -102,6 +110,7 @@ export const common = [
title: 'Vimeo',
icon: embedVimeoIcon,
keywords: [ __( 'video' ) ],
description: __( 'Embed a Vimeo video' ),
},
patterns: [ /^https?:\/\/(www\.)?vimeo\.com\/.+/i ],
},
Expand All @@ -113,6 +122,7 @@ export const others = [
settings: {
title: 'Animoto',
icon: embedVideoIcon,
description: __( 'Embed an Animoto video' ),
},
patterns: [ /^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i ],
},
Expand All @@ -121,6 +131,7 @@ export const others = [
settings: {
title: 'Cloudup',
icon: embedContentIcon,
description: __( 'Embed Cloudup content' ),
},
patterns: [ /^https?:\/\/cloudup\.com\/.+/i ],
},
Expand All @@ -129,6 +140,7 @@ export const others = [
settings: {
title: 'CollegeHumor',
icon: embedVideoIcon,
description: __( 'Embed CollegeHumor content' ),
},
patterns: [ /^https?:\/\/(www\.)?collegehumor\.com\/.+/i ],
},
Expand All @@ -137,6 +149,7 @@ export const others = [
settings: {
title: 'Dailymotion',
icon: embedVideoIcon,
description: __( 'Embed a Dailymotion video' ),
},
patterns: [ /^https?:\/\/(www\.)?dailymotion\.com\/.+/i ],
},
Expand All @@ -145,6 +158,7 @@ export const others = [
settings: {
title: 'Funny or Die',
icon: embedVideoIcon,
description: __( 'Embed Funny or Die content' ),
},
patterns: [ /^https?:\/\/(www\.)?funnyordie\.com\/.+/i ],
},
Expand All @@ -153,6 +167,7 @@ export const others = [
settings: {
title: 'Hulu',
icon: embedVideoIcon,
description: __( 'Embed Hulu content' ),
},
patterns: [ /^https?:\/\/(www\.)?hulu\.com\/.+/i ],
},
Expand All @@ -161,6 +176,7 @@ export const others = [
settings: {
title: 'Imgur',
icon: embedPhotoIcon,
description: __( 'Embed Imgur content' ),
},
patterns: [ /^https?:\/\/(.+\.)?imgur\.com\/.+/i ],
},
Expand All @@ -169,6 +185,7 @@ export const others = [
settings: {
title: 'Issuu',
icon: embedContentIcon,
description: __( 'Embed Issuu content' ),
},
patterns: [ /^https?:\/\/(www\.)?issuu\.com\/.+/i ],
},
Expand All @@ -177,6 +194,7 @@ export const others = [
settings: {
title: 'Kickstarter',
icon: embedContentIcon,
description: __( 'Embed Kickstarter content' ),
},
patterns: [ /^https?:\/\/(www\.)?kickstarter\.com\/.+/i, /^https?:\/\/kck\.st\/.+/i ],
},
Expand All @@ -185,6 +203,7 @@ export const others = [
settings: {
title: 'Meetup.com',
icon: embedContentIcon,
description: __( 'Embed Meetup.com content' ),
},
patterns: [ /^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i ],
},
Expand All @@ -194,6 +213,7 @@ export const others = [
title: 'Mixcloud',
icon: embedAudioIcon,
keywords: [ __( 'music' ), __( 'audio' ) ],
description: __( 'Embed Mixcloud content' ),
},
patterns: [ /^https?:\/\/(www\.)?mixcloud\.com\/.+/i ],
},
Expand All @@ -202,6 +222,7 @@ export const others = [
settings: {
title: 'Photobucket',
icon: embedPhotoIcon,
description: __( 'Embed a Photobucket image' ),
},
patterns: [ /^http:\/\/g?i*\.photobucket\.com\/.+/i ],
},
Expand All @@ -210,6 +231,7 @@ export const others = [
settings: {
title: 'Polldaddy',
icon: embedContentIcon,
description: __( 'Embed Polldaddy content' ),
},
patterns: [ /^https?:\/\/(www\.)?polldaddy\.com\/.+/i ],
},
Expand All @@ -218,6 +240,7 @@ export const others = [
settings: {
title: 'Reddit',
icon: embedRedditIcon,
description: __( 'Embed a Reddit thread' ),
},
patterns: [ /^https?:\/\/(www\.)?reddit\.com\/.+/i ],
},
Expand All @@ -226,6 +249,7 @@ export const others = [
settings: {
title: 'ReverbNation',
icon: embedAudioIcon,
description: __( 'Embed ReverbNation content' ),
},
patterns: [ /^https?:\/\/(www\.)?reverbnation\.com\/.+/i ],
},
Expand All @@ -234,6 +258,7 @@ export const others = [
settings: {
title: 'Screencast',
icon: embedVideoIcon,
description: __( 'Embed Screencast content' ),
},
patterns: [ /^https?:\/\/(www\.)?screencast\.com\/.+/i ],
},
Expand All @@ -242,6 +267,7 @@ export const others = [
settings: {
title: 'Scribd',
icon: embedContentIcon,
description: __( 'Embed Scribd content' ),
},
patterns: [ /^https?:\/\/(www\.)?scribd\.com\/.+/i ],
},
Expand All @@ -250,6 +276,7 @@ export const others = [
settings: {
title: 'Slideshare',
icon: embedContentIcon,
description: __( 'Embed Slideshare content' ),
},
patterns: [ /^https?:\/\/(.+?\.)?slideshare\.net\/.+/i ],
},
Expand All @@ -258,6 +285,7 @@ export const others = [
settings: {
title: 'SmugMug',
icon: embedPhotoIcon,
description: __( 'Embed SmugMug content' ),
},
patterns: [ /^https?:\/\/(www\.)?smugmug\.com\/.+/i ],
},
Expand Down Expand Up @@ -287,6 +315,7 @@ export const others = [
} );
},
} ],
description: __( 'Embed Speaker Deck content' ),
},
patterns: [ /^https?:\/\/(www\.)?speakerdeck\.com\/.+/i ],
},
Expand All @@ -295,6 +324,7 @@ export const others = [
settings: {
title: 'TED',
icon: embedVideoIcon,
description: __( 'Embed a TED video' ),
},
patterns: [ /^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i ],
},
Expand All @@ -303,6 +333,7 @@ export const others = [
settings: {
title: 'Tumblr',
icon: embedTumbrIcon,
description: __( 'Embed a Tumblr post' ),
},
patterns: [ /^https?:\/\/(www\.)?tumblr\.com\/.+/i ],
},
Expand All @@ -312,6 +343,7 @@ export const others = [
title: 'VideoPress',
icon: embedVideoIcon,
keywords: [ __( 'video' ) ],
description: __( 'Embed a VideoPress video' ),
},
patterns: [ /^https?:\/\/videopress\.com\/.+/i ],
},
Expand All @@ -320,6 +352,7 @@ export const others = [
settings: {
title: 'WordPress.tv',
icon: embedVideoIcon,
description: __( 'Embed a WordPress.tv video' ),
},
patterns: [ /^https?:\/\/wordpress\.tv\/.+/i ],
},
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/embed/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const name = 'core/embed';

export const settings = getEmbedBlockSettings( {
title: _x( 'Embed', 'block title' ),
description: __( 'The Embed block allows you to easily add videos, images, tweets, audio, and other content to your post or page.' ),
description: __( 'Embed videos, images, tweets, audio, and other content from external sources.' ),
icon: embedContentIcon,
// Unknown embeds should not be responsive by default.
responsive: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/file/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const name = 'core/file';
export const settings = {
title: __( 'File' ),

description: __( 'Add a link to a file that visitors can download.' ),
description: __( 'Add a link to a downloadable file.' ),

icon: <SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><Path fill="none" d="M0 0h24v24H0V0z" /><Path d="M9 6l2 2h9v10H4V6h5m1-2H4L2 6v12l2 2h16l2-2V8l-2-2h-8l-2-2z" /></SVG>,

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/gallery/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const name = 'core/gallery';

export const settings = {
title: __( 'Gallery' ),
description: __( 'Display multiple images in an elegantly organized tiled layout.' ),
description: __( 'Display multiple images in a rich gallery.' ),
icon: <SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><Path fill="none" d="M0 0h24v24H0V0z" /><G><Path d="M20 4v12H8V4h12m0-2H8L6 4v12l2 2h12l2-2V4l-2-2z" /><Path d="M12 12l1 2 3-3 3 4H9z" /><Path d="M2 6v14l2 2h14v-2H4V6H2z" /></G></SVG>,
category: 'common',
keywords: [ __( 'images' ), __( 'photos' ) ],
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/heading/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const name = 'core/heading';
export const settings = {
title: __( 'Heading' ),

description: __( 'Introduce topics and help visitors (and search engines!) understand how your content is organized.' ),
description: __( 'Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.' ),

icon: <SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><Path d="M5 4v3h5.5v12h3V7H19V4z" /><Path fill="none" d="M0 0h24v24H0V0z" /></SVG>,

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/html/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const name = 'core/html';
export const settings = {
title: __( 'Custom HTML' ),

description: __( 'Add your own HTML (and view it right here as you edit!).' ),
description: __( 'Add custom HTML code and preview it as you edit.' ),

icon: <SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><Path d="M4.5,11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5V11z M7,10.5h1.5V15H10v-4.5h1.5V9H7V10.5z M14.5,10l-1-1H12v6h1.5v-3.9 l1,1l1-1V15H17V9h-1.5L14.5,10z M19.5,13.5V9H18v6h5v-1.5H19.5z" /></SVG>,

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const schema = {
export const settings = {
title: __( 'Image' ),

description: __( 'They’re worth 1,000 words! Insert a single image.' ),
description: __( 'Insert an image to make a visual statement.' ),

icon: <SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><Path d="M0,0h24v24H0V0z" fill="none" /><Path d="m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z" /><Path d="m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z" /></SVG>,

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/latest-comments/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const name = 'core/latest-comments';
export const settings = {
title: __( 'Latest Comments' ),

description: __( 'Show a list of your site’s most recent comments.' ),
description: __( 'Display a list of your most recent comments.' ),

icon: <SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><Path fill="none" d="M0 0h24v24H0V0z" /><G><Path d="M22 4l-2-2H4L2 4v12l2 2h14l4 4V4zm-2 0v13l-1-1H4V4h16z" /><Path d="M6 12h12v2H6zM6 9h12v2H6zM6 6h12v2H6z" /></G></SVG>,

Expand Down
Loading

0 comments on commit db728b7

Please sign in to comment.