WordPress.org

Make WordPress Core

Ticket #21007: 21007.patch

File 21007.patch, 511 bytes (added by SergeyBiryukov, 6 years ago)
  • wordpress-importer.php

     
    578578                                        'post_type' => $post['post_type'], 'post_password' => $post['post_password']
    579579                                );
    580580
     581                                $postdata = array_map( 'addslashes', $postdata );
     582
    581583                                if ( 'attachment' == $postdata['post_type'] ) {
    582584                                        $remote_url = ! empty($post['attachment_url']) ? $post['attachment_url'] : $post['guid'];
    583585