diff --git a/modules/theme-tools/responsive-videos.php b/modules/theme-tools/responsive-videos.php index eb97130edddd6..a5dba5ac3818e 100644 --- a/modules/theme-tools/responsive-videos.php +++ b/modules/theme-tools/responsive-videos.php @@ -61,11 +61,11 @@ function jetpack_responsive_videos_embed_html( $html ) { } /** - * Check if oEmbed is YouTube or Vimeo before wrapping. + * Check if oEmbed is a `$video_patterns` provider video before wrapping. * * @return string */ -function jetpack_responsive_videos_maybe_wrap_oembed( $html, $url ) { +function jetpack_responsive_videos_maybe_wrap_oembed( $html, $url = null ) { if ( empty( $html ) || ! is_string( $html ) || ! $url ) { return $html; }