WordPress.org

Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#2957 closed enhancement (invalid)

[patch] RSS importer doesn't import Wordpress.com comments

Reported by: swillison Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.0.3
Component: General Keywords: import rss
Focuses: Cc:

Description

The RSS importer included with WordPress doesn't import <wp:comment>s, as exported by Wordpress.com. I've patched the importer to handle those comments, and refactored it a tiny bit as well.

Note that the importer still uses regular expressions to parse the XML - this is non-optimal as it may break with nested tags (or an RSS feed that uses different XML namespaces). I didn't fix that as I wasn't sure what the preferred namespace-aware XML parser for PHP is these days.

Attachments (1)

rss.php.diff (4.9 KB) - added by swillison 14 years ago.
Patch adding wp:comment support to the RSS importer.

Download all attachments as: .zip

Change History (4)

@swillison
14 years ago

Patch adding wp:comment support to the RSS importer.

#1 @matt
14 years ago

Why would people use the RSS importer instead of the WP XML importer, and why should e duplicate code between them?

#2 @technosailor
14 years ago

Probably because the WP XML importer is not supported (except by my plugin) in 2.0.3?

#3 @swillison
14 years ago

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

D'oh! Should have checked the development version before I wrote this. Aah well.

Note: See TracTickets for help on using tickets.