Dont do abspath file_exists check on urls that start with // since those are remote urls and not local urls
This commit is contained in:
parent
57b2f5c21c
commit
88d506bac0
|
@ -244,7 +244,7 @@ class WC_Download_Handler {
|
|||
$remote_file = true;
|
||||
|
||||
// See if path needs an abspath prepended to work.
|
||||
if ( file_exists( ABSPATH . $file_path ) ) {
|
||||
if ( '//' !== substr( $file_path, 0, 2 ) && file_exists( ABSPATH . $file_path ) ) {
|
||||
$remote_file = false;
|
||||
$file_path = ABSPATH . $file_path;
|
||||
|
||||
|
|
Loading…
Reference in New Issue