You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<item>
<wp:post_id>123</wp:post_id>
...
<categorydomain='post-format'nicename='some-post-format'>Some Post Format</category>
...
</item>
The some-post-format term is added (if needed) to the 'post-format' taxonomy, but the post is not associated with that term in the term_relationships table.
I don't understand the code well enough yet to do a fix for this, but it has something to do with WXR_Importer::process_post(). As it loops thru the terms for an imported post it does the following:
and terms in the post-format taxonomy seem to always end up in the else clause. However, it doesn't appear that anything is done with that $meta after the fact (e.g., in WXR_Importer::post_process_posts()).
I suspect that under certain circumstances the above could also result in other terms not being associated with imported posts, but those from the post-format taxonomy are the only ones I've seen it happen with in my testing.
The text was updated successfully, but these errors were encountered:
When an import contains something like:
The
some-post-format
term is added (if needed) to the 'post-format' taxonomy, but the post is not associated with that term in theterm_relationships
table.I don't understand the code well enough yet to do a fix for this, but it has something to do with
WXR_Importer::process_post()
. As it loops thru the terms for an imported post it does the following:and terms in the
post-format
taxonomy seem to always end up in theelse
clause. However, it doesn't appear that anything is done with that$meta
after the fact (e.g., inWXR_Importer::post_process_posts()
).I suspect that under certain circumstances the above could also result in other terms not being associated with imported posts, but those from the
post-format
taxonomy are the only ones I've seen it happen with in my testing.The text was updated successfully, but these errors were encountered: