From 2fa123379b93a7ff1d3aacd7348d271e64688663 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Fri, 21 Apr 2017 15:15:19 +0100 Subject: [PATCH] Quote block: variation instead of level and more accurate placeholder --- blocks/library/quote/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/blocks/library/quote/index.js b/blocks/library/quote/index.js index 96c820b7603a97..38dabfe2dbfae7 100644 --- a/blocks/library/quote/index.js +++ b/blocks/library/quote/index.js @@ -20,14 +20,14 @@ registerBlock( 'core/quote', { citation: html( 'footer' ) }, - controls: [ '1', '2' ].map( ( level ) => ( { + controls: [ '1', '2' ].map( ( variation ) => ( { icon: 'format-quote', - title: wp.i18n.sprintf( wp.i18n.__( 'Quote %s' ), level ), - isActive: ( { style = '1' } ) => style === level, + title: wp.i18n.sprintf( wp.i18n.__( 'Quote %s' ), variation ), + isActive: ( { style = '1' } ) => style === style, onClick( attributes, setAttributes ) { - setAttributes( { style: level } ); + setAttributes( { style: variation } ); }, - level + level: variation } ) ), edit( { attributes, setAttributes, focus, setFocus } ) {