Skip to content

Commit db4d23e

Browse files
authored
Merge pull request #208 from 10up/fix/block-changes-doesnt-enable-update-button
Add missing mute attribute in the block
2 parents 07d556f + d4cf4d1 commit db4d23e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

assets/js/src/block.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
max_width: attrs.named.max_width,
7373
padding_top: '',
7474
autoplay: '',
75+
mute: '',
7576
playsinline: '',
7677
picture_in_picture: '',
7778
embed: attrs.named.embed
@@ -81,13 +82,15 @@
8182
setAttrs.player_id = attrs.named.player_id;
8283
setAttrs.video_id = sanitizeIds( attrs.named.video_id );
8384
setAttrs.autoplay = attrs.named.autoplay;
85+
setAttrs.mute = attrs.named.mute;
8486
setAttrs.playsinline = attrs.named.playsinline;
8587
setAttrs.picture_in_picture = attrs.named.picture_in_picture;
8688
setAttrs.padding_top = attrs.named.padding_top;
8789
} else if ( '[bc_playlist' === attrs.numeric[0] ) {
8890
setAttrs.player_id = attrs.named.player_id;
8991
setAttrs.playlist_id = sanitizeIds( attrs.named.playlist_id );
9092
setAttrs.autoplay = attrs.named.autoplay;
93+
setAttrs.mute = attrs.named.mute;
9194
setAttrs.playsinline = attrs.named.playsinline;
9295
setAttrs.padding_top = attrs.named.padding_top;
9396
} else if ( '[bc_experience' === attrs.numeric[0] ) {

includes/class-bc-setup.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ public static function action_init_all() {
149149
'autoplay' => array(
150150
'type' => 'string',
151151
),
152+
'mute' => array(
153+
'type' => 'string',
154+
),
152155
'playsinline' => array(
153156
'type' => 'string',
154157
),

0 commit comments

Comments
 (0)