WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#8982 closed defect (bug) (invalid)

RSS import ignores post_author

Reported by: oregondean Owned by: tbaboon
Milestone: Priority: normal
Severity: normal Version: 2.7
Component: Import Keywords: RSS, import, author, has-patch, needs-testing
Focuses: Cc:

Description

RSS.php import defaults the $post_author to "1", which is the WPMU admin and seldom the proper imported post author.

Suggest an improvement to the RSS.php import routine (around line 98) to check to see if "dc:creator" is numeric. If so, use the numeric value as the $post_author. If not, default to 1. (or see below)

A separate ticket will be used to suggest the import.php routine prompt for a global author ID (if one is not expected to be part of the import) for all posts being imported. In this case RSS.php would need to allow for an additional parameter, post_author, to be passed from import.php.

Attachments (1)

rss.import.creator.patch (635 bytes) - added by tbaboon 6 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 @oregondean6 years ago

  • Component changed from Administration to Import
  • Owner anonymous deleted

comment:2 @tbaboon6 years ago

  • Cc tbaboon added
  • Keywords has-patch needs-testing added
  • Owner set to tbaboon
  • Status changed from new to assigned

Here's a patch.

-- tbaboon

comment:3 @ryan6 years ago

  • Milestone 2.8 deleted
  • Resolution set to invalid
  • Status changed from assigned to closed

The author has to be mapped to a valid user ID. Mapping as is done in the other importers can be added, but stuffing any old integer into the post_author field will not work.

Note: See TracTickets for help on using tickets.