Changeset 21039 for trunk/wp-admin/includes/image.php
- Timestamp:
- 06/10/2012 01:26:12 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/image.php
r20978 r21039 449 449 $dst_file = str_replace( basename( $dst_file ), 'copy-' . basename( $dst_file ), $dst_file ); 450 450 $dst_file = dirname( $dst_file ) . '/' . wp_unique_filename( dirname( $dst_file ), basename( $dst_file ) ); 451 452 // The directory containing the original file may no longer exist when 453 // using a replication plugin. 454 wp_mkdir_p( dirname( $dst_file ) ); 455 451 456 if ( ! @copy( $src_file, $dst_file ) ) 452 457 $dst_file = false;
Note: See TracChangeset
for help on using the changeset viewer.