mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Check if not exists and not is_dir before bailing. Props st3ff3n. fixes #9274
git-svn-id: http://svn.automattic.com/wordpress/trunk@11082 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7651b29cb9
commit
515487d39c
@ -146,7 +146,7 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||
$mode = $this->permission;
|
||||
if( ! $mode )
|
||||
return false;
|
||||
if ( ! $this->exists($file) )
|
||||
if ( ! $this->exists($file) && ! $this->is_dir($file) )
|
||||
return false;
|
||||
if ( ! $recursive || ! $this->is_dir($file) ) {
|
||||
if ( ! function_exists('ftp_chmod') )
|
||||
|
Loading…
Reference in New Issue
Block a user