diff --git a/tests/phpunit/tests/media.php b/tests/phpunit/tests/media.php index bab45cf4f2..dc5b990bd1 100644 --- a/tests/phpunit/tests/media.php +++ b/tests/phpunit/tests/media.php @@ -425,10 +425,15 @@ VIDEO; $width = 720; $height = 480; + $w = empty( $GLOBALS['content_width'] ) ? 640 : $GLOBALS['content_width']; + if ( $width > $w ) { + $width = $w; + } + $post_id = get_post() ? get_the_ID() : 0; $video =<<