Skip to content

Commit

Permalink
Media: Enable caption hotlinking by default (GoogleForCreators#11541)
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored May 23, 2022
1 parent b8eea75 commit 41af81f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions includes/Experiments.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ public function get_experiments(): array {
'label' => __( 'Caption hotlinking', 'web-stories' ),
'description' => __( 'Enable hotlinking of captions', 'web-stories' ),
'group' => 'editor',
'default' => true,
],
/**
* Author: @spacedmonkey
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public function test_get_item_schema(): void {
$this->assertArrayHasKey( 'mime_type', $properties );
$this->assertArrayHasKey( 'type', $properties );
$this->assertArrayHasKey( 'enum', $properties['type'] );
$this->assertEqualSets( [ 'audio', 'image', 'video' ], $properties['type']['enum'] );
$this->assertEqualSets( [ 'audio', 'image', 'video', 'caption' ], $properties['type']['enum'] );
}

/**
Expand Down

0 comments on commit 41af81f

Please sign in to comment.