Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#12216 closed defect (bug) (fixed)

Post import map to existing user broken

Reported by: danielpataki Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version: 3.0
Component: Import Keywords: import, map users
Focuses: Cc:


Hi Everyone!

This is my first bug report, so please excuse me if I am doing something wrong.

Using the latest WP nightly to test the new post_type functionality, I ran into the following problem. I installed Wordpress, and immediately created a new user.

I then tried to import posts using an XML file (WXR), and upon importing, the option to map the new posts to an existing user does not work. It doesn't find either the default user "admin", or the new one I created.

Otherwise the import works, creating a new user.

Change History (4)

#1 @danielpataki
6 years ago

Upon closer inspection I found that the function wp_list_authors() is broken, which is probably what is causing the problem. I'm sorry I don't have the time to go through the actual function to find the problem, if I stumble on to it I will post my findings here.

#2 @nacin
6 years ago

From a few minutes ago:

(In [13121]) Add is_multisite() check to wpdb::get_blog_prefix() to fix

get_blog_prefix($blog_id) call on a non-MS install. See #11644

That ended up repairing get_users_of_blog(), so this should be all set in trunk.

#3 follow-up: @danielpataki
6 years ago

Thanks, I hope I can be more helpful next time :)

#4 in reply to: ↑ 3 @nacin
6 years ago

  • Milestone changed from Unassigned to 3.0
  • Resolution set to fixed
  • Status changed from new to closed

I was able to verify that [13121] fixed it.

Replying to danielpataki:

Thanks, I hope I can be more helpful next time :)

Not a problem. Thanks for the report!

Note: See TracTickets for help on using tickets.