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

Utilize wp_remote_head() function to check for max-res image existence #12

Closed tw2113 closed 8 years ago

tw2113 commented 8 years ago

Forum user reported having to alter and allow allow_url_fopen in their PHP config for get_headers() to work. This has me wondering if get_headers() is specific to the file stream api in PHP, while WP is built to utilize what's available from many potential sources in HTTP requests.

Since we're just checking for whether or not the url returns a 404 or not, this should be an easy drop in replacement.

tw2113 commented 8 years ago

See 12-wp-remote-head