WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#8944 closed defect (bug) (fixed)

MT import causes empty feed

Reported by: hailin Owned by:
Milestone: 2.7.1 Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

$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.

Attachments (1)

8944_mt.diff (602 bytes) - added by hailin 9 years ago.
patch

Download all attachments as: .zip

Change History (4)

@hailin
9 years ago

patch

#1 @hailin
9 years ago

  • Milestone changed from 2.8 to 2.7.1

#2 @azaozz
9 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [10429]) Fix empty feed after MT import, props hailin, fixes #8944

#3 @azaozz
9 years ago

(In [10430]) Fix empty feed after MT import, props hailin, fixes #8944 for trunk

Note: See TracTickets for help on using tickets.