[wp-trac] [WordPress Trac] #11144: WP importer strips whitespace at EOL, problem with Markdown

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 2 19:56:18 UTC 2010


#11144: WP importer strips whitespace at EOL, problem with Markdown
--------------------------+-------------------------------------------------
 Reporter:  demetris      |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  3.0        
Component:  Import        |     Version:  2.9        
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------

Comment(by Denis-de-Bernardy):

 why not simply change:

 {{{
 $return = $wpdb->escape( trim( $return ) );
 }}}

 into:

 {{{
 $return = $wpdb->escape( $return );
 }}}

 there isn't any reason to trim anything here.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11144#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list