Ticket #43138: 43138.patch
File 43138.patch, 777 bytes (added by , 7 years ago) |
---|
-
wp-includes/post.php
5210 5210 // Remove intermediate and backup images if there are any. 5211 5211 if ( isset( $meta['sizes'] ) && is_array( $meta['sizes'] ) ) { 5212 5212 foreach ( $meta['sizes'] as $size => $sizeinfo ) { 5213 $intermediate_file = str_replace( basename( $file ), $sizeinfo['file'], $file );5213 $intermediate_file = str_replace( wp_basename( $file ), $sizeinfo['file'], $file ); 5214 5214 /** This filter is documented in wp-includes/functions.php */ 5215 5215 $intermediate_file = apply_filters( 'wp_delete_file', $intermediate_file ); 5216 5216 @ unlink( path_join( $uploadpath['basedir'], $intermediate_file ) );