Author data for new author disregarded
-
I have created a wxr file to import new users.
The structure is like this:
<wp:author><wp:author_login>newuser</wp:author_login><wp:author_display_name><![CDATA[newuser]]></wp:author_display_name><wp:author_email>[email protected]</wp:author_email><wp:author_first_name><![CDATA[new]]></wp:author_first_name><wp:author_last_name><![CDATA[user]]></wp:author_last_name></wp:author>
When I import this I get the dialog for assigning this user to an existing user. I do not select any of the existing users.
After that the user is created but without the email, first and last name!I traced this to line 355 of the wordpress-importer.php when the function wp_create_user is called for all _POST[‘user_new’].
This function can take an email but this isn’t specified.
I rather want the function wp_insert_user to be called in this case which also takes first and last name.Can this approach be changed whenever such wp:author blocks are available in the import?
https://www.ads-software.com/plugins/wordpress-importer/
[ No bumping please. ]
- The topic ‘Author data for new author disregarded’ is closed to new replies.