Changeset 54442
- Timestamp:
- 10/10/2022 12:46:19 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r54140 r54442 1708 1708 // Only check to see if the Dir exists upon creation failure. Less I/O this way. 1709 1709 if ( ! $wp_filesystem->mkdir( $_dir, FS_CHMOD_DIR ) && ! $wp_filesystem->is_dir( $_dir ) ) { 1710 return new WP_Error( 'mkdir_failed_ziparchive', __( 'Could not create directory.' ), substr( $_dir, strlen( $to ) ));1710 return new WP_Error( 'mkdir_failed_ziparchive', __( 'Could not create directory.' ), ); 1711 1711 } 1712 1712 } … … 1849 1849 // Only check to see if the dir exists upon creation failure. Less I/O this way. 1850 1850 if ( ! $wp_filesystem->mkdir( $_dir, FS_CHMOD_DIR ) && ! $wp_filesystem->is_dir( $_dir ) ) { 1851 return new WP_Error( 'mkdir_failed_pclzip', __( 'Could not create directory.' ), substr( $_dir, strlen( $to ) ));1851 return new WP_Error( 'mkdir_failed_pclzip', __( 'Could not create directory.' ), ); 1852 1852 } 1853 1853 }
Note: See TracChangeset
for help on using the changeset viewer.