From a1343a49d6e3f61a03f6c6d7ae0874ef923d5859 Mon Sep 17 00:00:00 2001 From: Dennis Snell Date: Mon, 26 Jun 2017 19:53:41 +0200 Subject: [PATCH] Serialize to the more tag --- blocks/api/serializer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/blocks/api/serializer.js b/blocks/api/serializer.js index 66b7421979064..ee1913d67248d 100644 --- a/blocks/api/serializer.js +++ b/blocks/api/serializer.js @@ -115,6 +115,10 @@ export function serializeBlock( block ) { const saveContent = getSaveContent( blockType, block.attributes ); const saveAttributes = getCommentAttributes( block.attributes, parseBlockAttributes( saveContent, blockType ) ); + if ( 'wp:core/more' === blockName ) { + return `${ saveAttributes.noTeaser ? '\n' : '' }`; + } + const serializedAttributes = ! isEmpty( saveAttributes ) ? serializeAttributes( saveAttributes ) + ' ' : '';