From 2cd025e7c10fb3eb28b1a54d933238d1076d3a87 Mon Sep 17 00:00:00 2001 From: Sami Keijonen Date: Thu, 3 May 2018 16:47:55 +0300 Subject: [PATCH 1/2] Add Hide teaser help text in More block. --- core-blocks/more/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core-blocks/more/index.js b/core-blocks/more/index.js index 9b31308e2eac32..c58ba2a2c14737 100644 --- a/core-blocks/more/index.js +++ b/core-blocks/more/index.js @@ -110,6 +110,7 @@ export const settings = { label={ __( 'Hide the teaser before the "More" tag' ) } checked={ !! noTeaser } onChange={ toggleNoTeaser } + help={ getHideTeaserHelp } /> @@ -144,3 +145,7 @@ export const settings = { ); }, }; + +function getHideTeaserHelp( checked ) { + return checked ? __( 'Hiding the content before the "More" tag in single post.' ) : __( 'Toggle to hide content before the "More" tag in single post.' ); +} From aea87f20ffad77fbce4219403036501267c810cc Mon Sep 17 00:00:00 2001 From: Sami Keijonen Date: Fri, 4 May 2018 09:02:12 +0300 Subject: [PATCH 2/2] Update label and help text wording. --- core-blocks/more/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core-blocks/more/index.js b/core-blocks/more/index.js index c58ba2a2c14737..0a3e3519d21649 100644 --- a/core-blocks/more/index.js +++ b/core-blocks/more/index.js @@ -107,7 +107,7 @@ export const settings = {