Closed (fixed)
Project:
WordPress Migrate
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2012 at 00:09 UTC
Updated:
12 Nov 2012 at 14:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
ksenzeeFixed in d0d34936eda7ae585f091ffab9cd6861975bc128.
Comment #2
mikeryanPulling over to main wordpress_migrate project.
Comment #3
mikeryanI don't think the behavior of this patch is quite what we want in the general case. It appears to force all incoming authors whose email addresses aren't already attached to Drupal accounts to be mapped to the specified account - it leaves no means to create accounts in those cases, which should be the default behavior.
Possible behaviors (keeping in mind most WordPress blogs will only have a single author):
1. Current - create any author account(s) which don't already exist. All imported pages/posts get mapped to a Drupal account with the same email address as the WordPress author.
2. What the TODO was suggesting - pick an existing Drupal account to be the author of all imported pages/posts.
3. Patch behavior - If an existing Drupal account with a matching email address exists, use that as the author, otherwise use the chosen account.
So, we need to present these three options in some clear understandable way...
Comment #4
mikeryanComment #5
ksenzeeHere's a patch that lets you choose whether you want to create new users or pick an existing user.
Comment #6
mikeryanCommitted with a label adjustment ("Assign unowned content to" seemed unclear, changed to "Default content author:"). Thanks!