Make WordPress Core

Ticket #40861: 40861.patch

File 40861.patch, 480 bytes (added by ocean90, 7 years ago)
  • src/wp-includes/post.php

     
    36083608
    36093609        if ( 'attachment' === $postarr['post_type'] ) {
    36103610                if ( ! empty( $postarr['file'] ) ) {
    3611                         update_attached_file( $post_ID, $postarr['file'] );
     3611                        update_attached_file( $post_ID, wp_unslash( $postarr['file'] ) );
    36123612                }
    36133613
    36143614                if ( ! empty( $postarr['context'] ) ) {