diff --git a/projects/plugins/jetpack/changelog/rnmobile-revert-playsinline-setting-change-in-core-video b/projects/plugins/jetpack/changelog/rnmobile-revert-playsinline-setting-change-in-core-video new file mode 100644 index 0000000000000..13222501d05d3 --- /dev/null +++ b/projects/plugins/jetpack/changelog/rnmobile-revert-playsinline-setting-change-in-core-video @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +RNMobile: Revert change to the way playsInline attribute is saved, prevent regression on web. diff --git a/projects/plugins/jetpack/extensions/blocks/videopress/save.js b/projects/plugins/jetpack/extensions/blocks/videopress/save.js index a731b3ea65c29..2c6b81eae8cd0 100644 --- a/projects/plugins/jetpack/extensions/blocks/videopress/save.js +++ b/projects/plugins/jetpack/extensions/blocks/videopress/save.js @@ -42,14 +42,7 @@ 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 */ - // 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, - } ); + return CoreVideoSave( props ); } const url = getVideoPressUrl( guid, {