- Timestamp:
- 08/09/2022 11:32:01 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-ssh2.php
r52807 r53872 558 558 * @since 2.7.0 559 559 * 560 * @param string $ filePath to file or directory.561 * @return bool Whether $ fileexists or not.562 */ 563 public function exists( $ file) {564 return file_exists( $this->sftp_path( $ file) );560 * @param string $path Path to file or directory. 561 * @return bool Whether $path exists or not. 562 */ 563 public function exists( $path ) { 564 return file_exists( $this->sftp_path( $path ) ); 565 565 } 566 566 … … 606 606 * @since 2.7.0 607 607 * 608 * @param string $ filePath to file or directory.609 * @return bool Whether $ fileis writable.610 */ 611 public function is_writable( $ file) {608 * @param string $path Path to file or directory. 609 * @return bool Whether $path is writable. 610 */ 611 public function is_writable( $path ) { 612 612 // PHP will base its writable checks on system_user === file_owner, not ssh_user === file_owner. 613 613 return true;
Note: See TracChangeset
for help on using the changeset viewer.