Check if not exists and not is_dir before bailing. Props st3ff3n. fixes #9274
git-svn-id: https://develop.svn.wordpress.org/trunk@11082 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ea6c1efcb9
commit
d77d35e502
@ -146,7 +146,7 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
|||||||
$mode = $this->permission;
|
$mode = $this->permission;
|
||||||
if( ! $mode )
|
if( ! $mode )
|
||||||
return false;
|
return false;
|
||||||
if ( ! $this->exists($file) )
|
if ( ! $this->exists($file) && ! $this->is_dir($file) )
|
||||||
return false;
|
return false;
|
||||||
if ( ! $recursive || ! $this->is_dir($file) ) {
|
if ( ! $recursive || ! $this->is_dir($file) ) {
|
||||||
if ( ! function_exists('ftp_chmod') )
|
if ( ! function_exists('ftp_chmod') )
|
||||||
|
Loading…
Reference in New Issue
Block a user