File tree 1 file changed +8
-1
lines changed
projects/plugins/jetpack/extensions/blocks/videopress
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,14 @@ const VideoPressSave = CoreVideoSave => props => {
42
42
* @see https://github.com/WordPress/gutenberg/blob/c5f9bd88125282a0c35f887cc8d835f065893112/packages/editor/src/hooks/generated-class-name.js#L42
43
43
* @see https://github.com/Automattic/wp-calypso/pull/30546#issuecomment-463637946
44
44
*/
45
- return CoreVideoSave ( props ) ;
45
+ // Rename `playsinline` to `playsInline` to conform the block schema of core Video block.
46
+ const { playsinline : videoPressPlayinline , ...restAttributes } = props . attributes ;
47
+ const coreVideoAttributes = { ...restAttributes , playsInline : playsinline } ;
48
+
49
+ return CoreVideoSave ( {
50
+ ...props ,
51
+ attributes : coreVideoAttributes ,
52
+ } ) ;
46
53
}
47
54
48
55
const url = getVideoPressUrl ( guid , {
You can’t perform that action at this time.
0 commit comments