| @@ -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. |