[wp-trac] [WordPress Trac] #21007: Importing omits backslashes

WordPress Trac noreply at wordpress.org
Thu Mar 30 01:14:40 UTC 2017


#21007: Importing omits backslashes
-------------------------------------+----------------------------
 Reporter:  SeMeKh                   |       Owner:
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  WordPress.org
Component:  Import                   |     Version:
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+----------------------------

Comment (by mcbsys):

 Not sure whether to post here or on Github.

 In 0.6.3, backslashes are still being removed from comments.  I'm not
 familiar with WordPress code but adding another wp_slash to wordpress-
 importer.php seemed to fix it:
 {{{#!php
 <?php

 if ( isset( $inserted_comments[$comment['comment_parent']] ) )
     $comment['comment_parent'] =
 $inserted_comments[$comment['comment_parent']];
 $comment = wp_slash( $comment );
 $comment = wp_filter_comment( $comment );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21007#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list