Ticket #18476: filesystem.diff
| File filesystem.diff, 2.7 KB (added by , 15 years ago) |
|---|
-
wp-admin/includes/class-wp-filesystem-ssh2.php
206 206 return $this->run_command(sprintf('chmod -R %o %s', $mode, escapeshellarg($file)), true); 207 207 } 208 208 209 /** 210 * Change the ownership of a file / folder. 211 * @param string $file Path to the file. 212 * @param mixed $owner A user name or number. 213 * @param bool $recursive (optional) If set True changes file owner recursivly. Defaults to False. 214 * @return bool Returns true on success or false on failure. 215 */ 209 216 function chown($file, $owner, $recursive = false ) { 210 217 if ( ! $this->exists($file) ) 211 218 return false; -
wp-admin/includes/class-wp-filesystem-ftpsockets.php
174 174 return $this->ftp->chmod($file, $mode); 175 175 } 176 176 177 function chown($file, $owner, $recursive = false ) {178 return false;179 }180 181 177 function owner($file) { 182 178 $dir = $this->dirlist($file); 183 179 return $dir[$file]['owner']; -
wp-admin/includes/class-wp-filesystem-ftpext.php
168 168 return (bool)@ftp_site($this->link, sprintf('CHMOD %o %s', $mode, $file)); 169 169 return (bool)@ftp_chmod($this->link, $mode, $file); 170 170 } 171 function chown($file, $owner, $recursive = false ) {172 return false;173 }174 171 function owner($file) { 175 172 $dir = $this->dirlist($file); 176 173 return $dir[$file]['owner']; -
wp-admin/includes/class-wp-filesystem-base.php
327 327 function is_binary( $text ) { 328 328 return (bool) preg_match('|[^\x20-\x7E]|', $text); //chr(32)..chr(127) 329 329 } 330 331 /** 332 * Change the ownership of a file / folder. 333 * Default behavior is to do nothing, override this in your subclass, if desired 334 * @param string $file Path to the file. 335 * @param mixed $owner A user name or number. 336 * @param bool $recursive (optional) If set True changes file owner recursivly. Defaults to False. 337 * @return bool Returns true on success or false on failure. 338 */ 339 function chown($file, $owner, $recursive = false ) { 340 return false; 341 } 330 342 } 331 343 332 344 ?>