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:
claudiulodro 2018-08-31 12:24:55 -07:00
parent 57b2f5c21c
commit 88d506bac0
1 changed files with 1 additions and 1 deletions

View File

@ -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;