Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing a WXR with Site Editor templates should work #1996

Closed
akirk opened this issue Nov 14, 2024 · 1 comment · Fixed by #1997
Closed

Importing a WXR with Site Editor templates should work #1996

akirk opened this issue Nov 14, 2024 · 1 comment · Fixed by #1997

Comments

@akirk
Copy link
Member

akirk commented Nov 14, 2024

When importing a WXR with the importWxr step, a post might be a template created with the site editor. Those need to be associated with the theme slug in the wp_theme taxonomy. For this they contain this entry in the wxr:

<category domain="wp_theme" nicename="adonay"><![CDATA[adonay]]></category>

Unfortunately, this term relationship is not properly established, thus making it impossible to restore a Site Editor template.

@zaerl
Copy link
Collaborator

zaerl commented Dec 2, 2024

Yes, this is part of the new topological sort we must add to the project. Once added, all the relationships between terms/posts and custom posts will be fixed.

@zaerl zaerl closed this as not planned Won't fix, can't repro, duplicate, stale Dec 2, 2024
@github-project-automation github-project-automation bot moved this from Inbox to Done in Playground Board Dec 2, 2024
adamziel pushed a commit that referenced this issue Dec 10, 2024
…onomy (#1997)

Fixes #1996 

While the bug might be in the WordPress-Importer itself, we can fix it
by adding a filter that just ensures that the term will be created. I
vote for adding this small intermediate fix even as in #1888 there is
the plan to import WXRs differently in future. This is confusing
behavior right now and we can fix it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
2 participants