Ticket #3655: custom-header.php.diff

File custom-header.php.diff, 0.6 kB (added by filosofo, 2 years ago)
  • wp-admin/custom-header.php

    old new  
    286286                // cleanup 
    287287                $file = get_attached_file( $_POST['attachment_id'] ); 
    288288                $medium = str_replace(basename($file), 'midsize-'.basename($file), $file); 
    289                 @unlink( $medium ); 
    290                 apply_filters( 'wp_delete_file', $medium ); 
     289                @unlink( apply_filters( 'wp_delete_file', $medium ) ); 
    291290                wp_delete_attachment( $_POST['attachment_id'] ); 
    292291 
    293292                return $this->finished();