diff --git a/assets/src/components/Copy.jsx b/assets/src/components/Copy.jsx index 30e1539..eb59429 100644 --- a/assets/src/components/Copy.jsx +++ b/assets/src/components/Copy.jsx @@ -46,7 +46,7 @@ export default compose( getSelectedBlock } = this.props, getMultiSelectedBlocks = select( 'core/block-editor' ).getMultiSelectedBlocks(), - numBlocks = size( getMultiSelectedBlocks ) + 1; + numBlocks = size( getMultiSelectedBlocks ); if ( ! getSelectedBlock && size( getMultiSelectedBlocks ) < 1 ) return false; @@ -64,7 +64,7 @@ export default compose( > { /* translators: %s: number of blocks selected. */ - sprintf( _n( 'Copy Block', 'Copy %s Blocks', numBlocks, 'block-copy' ), numBlocks ) + sprintf( _n( 'Copy Block', 'Copy %s Blocks', numBlocks + 1, 'block-copy' ), numBlocks ) } } diff --git a/assets/src/utils/withDispatch.js b/assets/src/utils/withDispatch.js index fb7c745..986e3c5 100644 --- a/assets/src/utils/withDispatch.js +++ b/assets/src/utils/withDispatch.js @@ -21,7 +21,7 @@ const applyWithDispatch = withDispatch( dispatch => { const selectedBlocks = select( 'core/block-editor' ).getMultiSelectedBlocks(), numBlocks = size( selectedBlocks ), /* translators: %s: number of blocks selected. */ - notice = sprintf( _n( 'A single block copied.', '%s blocks copied.', numBlocks, 'block-copy' ), numBlocks ); + notice = sprintf( _n( 'A single block copied.', '%s blocks copied.', numBlocks + 1, 'block-copy' ), numBlocks ); createNotice( 'info',