Ticket #40861: 40861.patch
File 40861.patch, 480 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/post.php
3608 3608 3609 3609 if ( 'attachment' === $postarr['post_type'] ) { 3610 3610 if ( ! empty( $postarr['file'] ) ) { 3611 update_attached_file( $post_ID, $postarr['file']);3611 update_attached_file( $post_ID, wp_unslash( $postarr['file'] ) ); 3612 3612 } 3613 3613 3614 3614 if ( ! empty( $postarr['context'] ) ) {