Closed (fixed)
Project:
Wordpress Import
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
28 Nov 2009 at 15:33 UTC
Updated:
24 Dec 2009 at 01:40 UTC
This is not a critical issue but generally slows down importing. On a blog of 2,500 entries, the delay was noticeable.
I (badly) hacked the module to only call it once, but it is not worthy of a patch. If I have time, I'll clean it up and submit a patch. Otherwise it might be a good to-do for the maintainer.
Comments
Comment #1
lavamind commentedNormally, node_save() is only called a second time as needed. Mainly this happens after processing taxonomy for a post. When I worked on that part of the code, I found that calling node_save() was actually required so that taxonomy would be correctly saved. If you know of a solution for this, let us know!
Comment #2
lavamind commentedOK, I changed the taxonomy processing so that now we use the taxonomy parameter of the node object. Since there was no other real need for the second node_save, I removed it.
Committed to 6.x-2.x-dev.
Thanks!