diff --git a/classes/Tools/Video/Player/VideoPlayerShortcode.php b/classes/Tools/Video/Player/VideoPlayerShortcode.php index b8eab634..cc98ed77 100644 --- a/classes/Tools/Video/Player/VideoPlayerShortcode.php +++ b/classes/Tools/Video/Player/VideoPlayerShortcode.php @@ -95,7 +95,7 @@ public function renderShortCode( $attrs ) $width = intval( arrayPath( $meta, 'width', (int) 0 ) ); $height = intval( arrayPath( $meta, 'height', (int) 0 ) ); if ( !empty($width) && !empty($height) ) { - $extras .= " width={$asset->width} height={$asset->height}"; + $extras .= " width={$width} height={$height}"; } } else { $extras .= " width={$asset->width} height={$asset->height}"; @@ -134,4 +134,4 @@ public function renderShortCode( $attrs ) return $tag; } -} \ No newline at end of file +}