[wp-trac] [WordPress Trac] #13130: WP Import with Multiple Authors Fails
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 29 18:05:03 UTC 2010
#13130: WP Import with Multiple Authors Fails
--------------------------+-------------------------------------------------
Reporter: technosailor | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: 3.0
Component: Import | Version:
Severity: blocker | Keywords: dev-feedback
--------------------------+-------------------------------------------------
Changes (by blepoxp):
* keywords: => dev-feedback
Comment:
I've tested this and the problem stems from the fact that we're importing
users w/o email addresses. More accurately, all of the imported users have
the same email address: an empty string. This happens at wp_create_user.
Once we get past the first inserted user with an empty string for an
email, all others are rejected because wp_insert_user() returns a wp_error
object w/o insert if the email already exists in the database.
This worked in 2.9 because wp_insert_user (in /wp-
includes/registration.php) didn't check for dups and return the error.
I can put together a patch, but there's no clear way to proceed without
dev-feedback.
Possible solutions include capturing email in export/import process or
modifying wp_insert_user to allow dups of empty strings.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13130#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list