Changeset 58022 for trunk/src/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 04/18/2024 03:15:50 AM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader.php
r56550 r58022 197 197 $this->strings['fs_no_folder'] = __( 'Unable to locate needed folder (%s).' ); 198 198 199 $this->strings['no_package'] = __( 'Package not available.' ); 199 200 $this->strings['download_failed'] = __( 'Download failed.' ); 200 201 $this->strings['installing_package'] = __( 'Installing the latest version…' ); … … 528 529 } 529 530 530 if ( empty( $source ) || empty( $destination ) ) { 531 if ( 532 ( ! is_string( $source ) || '' === $source || trim( $source ) !== $source ) || 533 ( ! is_string( $destination ) || '' === $destination || trim( $destination ) !== $destination ) 534 ) { 531 535 return new WP_Error( 'bad_request', $this->strings['bad_request'] ); 532 536 }
Note: See TracChangeset
for help on using the changeset viewer.