[wp-trac] [WordPress Trac] #8944: MT import causes empty feed

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 24 01:02:58 GMT 2009


#8944: MT import causes empty feed
--------------------------+-------------------------------------------------
 Reporter:  hailin        |       Owner:  anonymous
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  2.8      
Component:  General       |     Version:           
 Severity:  normal        |    Keywords:           
--------------------------+-------------------------------------------------
 $line .= "\n"; L442 in wp-admin/import/mt.php causes an issue in feed:
 when there is no excerpt, it inserts \n in post_excerpt, and since it's no
 longer empty, the_excerpt_rss() will return \n, resulting in blank rss
 <description> entry.

 I think saving \n to db is not very good (although it probably doesn't
 hurt).
 A safe fix is just to do:

  if( !empty($line) )
     $line .= "\n";

 Thanks to sivel for discussions on IRC.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8944>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list