WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/27/2012 04:25:43 PM (9 years ago)
Author:
ryan
Message:

Shears of vigorous pinking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/image.php

    r20808 r20944  
    441441function _copy_image_file( $attachment_id ) {
    442442    $dst_file = $src_file = get_attached_file( $attachment_id );
    443     if ( ! file_exists( $src_file ) ) 
     443    if ( ! file_exists( $src_file ) )
    444444        $src_file = _load_image_to_edit_path( $attachment_id );
    445445
    446446    if ( $src_file ) {
    447447        $dst_file = str_replace( basename( $dst_file ), 'copy-' . basename( $dst_file ), $dst_file );
    448         $dst_file = dirname( $dst_file ) . '/' . wp_unique_filename( dirname( $dst_file ), basename( $dst_file ) ); 
     448        $dst_file = dirname( $dst_file ) . '/' . wp_unique_filename( dirname( $dst_file ), basename( $dst_file ) );
    449449        if ( ! @copy( $src_file, $dst_file ) )
    450450            $dst_file = false;
Note: See TracChangeset for help on using the changeset viewer.