Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#8982 closed defect (bug) (invalid)

RSS import ignores post_author

Reported by: oregondean's profile oregondean Owned by: tbaboon's profile 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 16 years ago.

Download all attachments as: .zip

Change History (4)

#1 @oregondean
16 years ago

  • Component changed from Administration to Import
  • Owner anonymous deleted

#2 @tbaboon
16 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

#3 @ryan
16 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.