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.
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.