Skip to content

Commit 247c5b8

Browse files
committed
remove width 100%
1 parent 026ed89 commit 247c5b8

File tree

1 file changed

+4
-1
lines changed
  • cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media

1 file changed

+4
-1
lines changed

cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media/class-video.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,9 @@ public function filter_video_tags( $content ) {
266266
}
267267

268268
$url = $this->media->filter->get_url_from_tag( $tag );
269+
if( false === $url ){
270+
continue;
271+
}
269272
$attachment_id = $this->media->get_id_from_url( $url );
270273
// Enable Autoplay for this video.
271274
if ( false !== strpos( $tag, 'autoplay' ) ) {
@@ -369,7 +372,7 @@ public function print_video_scripts() {
369372

370373
if ( videoElement.length === 1 ) {
371374
videoElement = videoElement[0];
372-
videoElement.style.width = '100%';
375+
373376

374377
<?php if ( $this->config['video_freeform'] ): ?>
375378
videoElement.src = videoElement.src.replace(

0 commit comments

Comments
 (0)