PluginProbe
Gutenberg / trunk
Gutenberg vtrunk
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
← All changes | build/scripts/block-library/video.php +2 -2 23.1.0 → trunk View file →
@@ -16,10 +16,10 @@
16 16 * @param string $content The block content.
17 17 * @return string The block content with the dimensions added.
18 18 */
19 19 function gutenberg_render_block_core_video( array $attributes, string $content ): string {
20 - // if the content lacks any video tag, abort.
21 - if ( ! str_contains( $content, '<video' ) ) {
20 + // If the content lacks any video tag (either <video> or <VIDEO>), abort. Note that str_contains() is case-sensitive.
21 + if ( stripos( $content, '<video' ) === false ) {
22 22 return $content;
23 23 }
24 24
25 25 // If the 'id' attribute is not populated for a video attachment, abort.