From f27f81e6369bb0fcb5952db6044ba9f6f31cd0dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ella=20van=C2=A0Durpe?= Date: Fri, 25 Sep 2020 15:15:02 +0300 Subject: [PATCH 1/4] Block API: light block edit/save symmetry --- packages/block-library/src/audio/save.js | 4 ++-- packages/block-library/src/button/save.js | 4 ++-- packages/block-library/src/buttons/save.js | 4 ++-- packages/block-library/src/code/save.js | 4 ++-- packages/block-library/src/column/save.js | 4 ++-- packages/block-library/src/columns/save.js | 4 ++-- packages/block-library/src/cover/save.js | 4 ++-- packages/block-library/src/group/save.js | 4 ++-- packages/block-library/src/heading/save.js | 12 +++++------- packages/block-library/src/image/save.js | 10 +++++++--- packages/block-library/src/list/save.js | 15 +++++---------- packages/block-library/src/media-text/save.js | 4 ++-- packages/block-library/src/paragraph/save.js | 12 ++++-------- packages/block-library/src/preformatted/save.js | 8 ++++++-- packages/block-library/src/quote/save.js | 4 ++-- packages/block-library/src/social-links/save.js | 4 ++-- packages/block-library/src/verse/save.js | 10 ++++------ packages/block-library/src/video/save.js | 4 ++-- packages/blocks/src/api/serializer.js | 15 +++++++++++++-- 19 files changed, 68 insertions(+), 62 deletions(-) diff --git a/packages/block-library/src/audio/save.js b/packages/block-library/src/audio/save.js index f88eb0bba52e0c..c3e4f18b0667c4 100644 --- a/packages/block-library/src/audio/save.js +++ b/packages/block-library/src/audio/save.js @@ -3,12 +3,12 @@ */ import { RichText } from '@wordpress/block-editor'; -export default function save( { attributes } ) { +export default function save( { attributes, getBlockProps } ) { const { autoplay, caption, loop, preload, src } = attributes; return ( src && ( -
+