- Timestamp:
- 03/16/2023 04:12:51 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php
r55354 r55556 422 422 * 423 423 * @since 2.5.0 424 * @since 6.3.0 Returns false for an empty path. 424 425 * 425 426 * @param string $path Path to file or directory. … … 427 428 */ 428 429 public function exists( $path ) { 430 /* 431 * Check for empty path. If ftp::nlist() receives an empty path, 432 * it checks the current working directory and may return true. 433 * 434 * See https://core.trac.wordpress.org/ticket/33058. 435 */ 436 if ( '' === $path ) { 437 return false; 438 } 439 429 440 $list = $this->ftp->nlist( $path ); 430 441
Note: See TracChangeset
for help on using the changeset viewer.