- 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-ftpsockets.php
r53862 r53872 418 418 * and file size to check for file existence. 419 419 * 420 * @param string $ filePath to file or directory.421 * @return bool Whether $ fileexists or not.422 */ 423 public function exists( $ file) {424 if ( $this->is_dir( $ file) ) {420 * @param string $path Path to file or directory. 421 * @return bool Whether $path exists or not. 422 */ 423 public function exists( $path ) { 424 if ( $this->is_dir( $path ) ) { 425 425 return true; 426 426 } 427 427 428 return is_numeric( $this->size( $ file) );428 return is_numeric( $this->size( $path ) ); 429 429 } 430 430 … … 485 485 * @since 2.5.0 486 486 * 487 * @param string $ filePath to file or directory.488 * @return bool Whether $ fileis writable.489 */ 490 public function is_writable( $ file) {487 * @param string $path Path to file or directory. 488 * @return bool Whether $path is writable. 489 */ 490 public function is_writable( $path ) { 491 491 return true; 492 492 }
Note: See TracChangeset
for help on using the changeset viewer.