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