WebDevStudios / Automatic-Featured-Images-from-Videos

If a YouTube or Vimeo video exists in the first few paragraphs of a post, automatically set the post's featured image to that vidoe's thumbnail.
33 stars 24 forks source link

Undefined variables notices #71

Closed tw2113 closed 1 year ago

tw2113 commented 1 year ago
PHP Warning: Undefined variable $video_url in
    /wp-content/plugins/automatic-featured-images-from-videos/automatic-featured-images-from-videos.php on line 162
PHP message: PHP Warning: Undefined variable $video_embed_url in 
    /wp-content/plugins/automatic-featured-images-from-videos/automatic-featured-images-from-videos.php on line 163

Happens if no video is ultimately found, but we somehow still end up trying to save.

tw2113 commented 1 year ago

Fixed in cac8a81