diff --git a/blocks/library/cover-image/index.js b/blocks/library/cover-image/index.js index 7404a4cb5333c0..b13abe7bfa2ee9 100644 --- a/blocks/library/cover-image/index.js +++ b/blocks/library/cover-image/index.js @@ -166,7 +166,7 @@ registerBlockType( 'core/cover-image', { }, save( { attributes, className } ) { - const { url, title, hasParallax, dimRatio } = attributes; + const { url, title, hasParallax, dimRatio, align } = attributes; const style = url ? { backgroundImage: `url(${ url })` } : undefined; @@ -176,7 +176,8 @@ registerBlockType( 'core/cover-image', { { 'has-background-dim': dimRatio !== 0, 'has-parallax': hasParallax, - } + }, + align ? `align${ align }` : null, ); return ( diff --git a/post-content.js b/post-content.js index 15a8fc3084406e..48ededbfb34814 100644 --- a/post-content.js +++ b/post-content.js @@ -8,7 +8,7 @@ window._wpGutenbergPost.title = { window._wpGutenbergPost.content = { raw: [ '', - '

Of Mountains & Printing Presses

', + '

Of Mountains & Printing Presses

', '', '',