diff --git a/wp-admin/includes/class-wp-filesystem-direct.php b/wp-admin/includes/class-wp-filesystem-direct.php
index 7af7dcc..76eafa0 100644
a
|
b
|
class WP_Filesystem_Direct extends WP_Filesystem_Base { |
148 | 148 | public function chmod($file, $mode = false, $recursive = false) { |
149 | 149 | if ( ! $mode ) { |
150 | 150 | if ( $this->is_file($file) ) |
151 | | $mode = FS_CHMOD_FILE; |
| 151 | $mode = defined('FS_CHMOD_FILE') ? FS_CHMOD_FILE : false; |
152 | 152 | elseif ( $this->is_dir($file) ) |
153 | | $mode = FS_CHMOD_DIR; |
| 153 | $mode = defined('FS_CHMOD_DIR') ? FS_CHMOD_DIR : false; |
154 | 154 | else |
155 | 155 | return false; |
156 | 156 | } |
… |
… |
class WP_Filesystem_Direct extends WP_Filesystem_Base { |
428 | 428 | return false; |
429 | 429 | |
430 | 430 | if ( ! $chmod ) |
431 | | $chmod = FS_CHMOD_DIR; |
| 431 | $chmod = defined('FS_CHMOD_DIR') ? FS_CHMOD_DIR : false; |
432 | 432 | |
433 | 433 | if ( ! @mkdir($path) ) |
434 | 434 | return false; |