From ee6267f492432a60ae30fbfb7a981fd252a57478 Mon Sep 17 00:00:00 2001 From: Siobhan Date: Tue, 27 Feb 2024 12:05:17 +0000 Subject: [PATCH 1/2] fix: Rename playsInline to conform to Video block Co-Authored-By: Carlos Garcia <14905380+fluiddot@users.noreply.github.com> --- .../plugins/jetpack/extensions/blocks/videopress/save.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/projects/plugins/jetpack/extensions/blocks/videopress/save.js b/projects/plugins/jetpack/extensions/blocks/videopress/save.js index 2c6b81eae8cd0..a731b3ea65c29 100644 --- a/projects/plugins/jetpack/extensions/blocks/videopress/save.js +++ b/projects/plugins/jetpack/extensions/blocks/videopress/save.js @@ -42,7 +42,14 @@ const VideoPressSave = CoreVideoSave => props => { * @see https://github.com/WordPress/gutenberg/blob/c5f9bd88125282a0c35f887cc8d835f065893112/packages/editor/src/hooks/generated-class-name.js#L42 * @see https://github.com/Automattic/wp-calypso/pull/30546#issuecomment-463637946 */ - return CoreVideoSave( props ); + // Rename `playsinline` to `playsInline` to conform the block schema of core Video block. + const { playsinline: videoPressPlayinline, ...restAttributes } = props.attributes; + const coreVideoAttributes = { ...restAttributes, playsInline: playsinline }; + + return CoreVideoSave( { + ...props, + attributes: coreVideoAttributes, + } ); } const url = getVideoPressUrl( guid, { From 1da13c42b19a5cbf570e190c1943e3558a49974d Mon Sep 17 00:00:00 2001 From: Siobhan Date: Tue, 27 Feb 2024 12:06:52 +0000 Subject: [PATCH 2/2] docs: Add CHANGELOG entry --- ...rnmobile-ensure-playsinline-setting-confirms-to-core-video | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 projects/plugins/jetpack/changelog/rnmobile-ensure-playsinline-setting-confirms-to-core-video diff --git a/projects/plugins/jetpack/changelog/rnmobile-ensure-playsinline-setting-confirms-to-core-video b/projects/plugins/jetpack/changelog/rnmobile-ensure-playsinline-setting-confirms-to-core-video new file mode 100644 index 0000000000000..dbdcbc45db5e0 --- /dev/null +++ b/projects/plugins/jetpack/changelog/rnmobile-ensure-playsinline-setting-confirms-to-core-video @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +RNMobile: Ensure playsInline setting always conforms to Video block schema.