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 286 286 // cleanup 287 287 $file = get_attached_file( $_POST['attachment_id'] ); 288 288 $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 ) ); 291 290 wp_delete_attachment( $_POST['attachment_id'] ); 292 291 293 292 return $this->finished();
