Changeset 55556
- Timestamp:
- 03/16/2023 04:12:51 PM (21 months ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 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 -
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.