-
Notifications
You must be signed in to change notification settings - Fork 260
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
importWordPressFiles should leave directories untouched that are not in the ZIP file #1992
Comments
By looking at the code it looks intentional that we overwrite the wp-content folder. How could we phrase this differently? Technical detailsThis is happening because we overwrite the entire wp-content folder. Even if the ZIP doesn't contain a |
I don't like how that step works today. It was through way too many iterations without proper importing tools. Luckily, we have more tooling now (URL rewriter, block markup parser, internal Playground directory). Let's take a step back, forget about any existing assumptions, and discuss the most useful possible version of a ZIP import. First, I don't like having a special list of files excluded from the export. Initially, it was just a way to exclude the platform-level mu-plugins from the export. These days we don't ship them anymore, so that's a solved problem. Removing that list would break a few export files that are 12+ months old – I think that's okay. Once we remove that list, we can get rid of that confusing part of the documentation. Thinking forward, I wonder what kinds of ZIP files would be useful to support? The snapshots support explores that question.
So we'd either import By the way! This is the same problem space as @brandonpayton is exploring in WordPress/blueprints-library#117. |
Also, I don't want to make any further adjustments in the TypeScript "import site" step. Everything I said, I meant for the PHP importer. |
Maybe content outside of |
In the docs it says:
I read this as: if a ZIP file specificed doesn't include a
wp-content
directory, it should be left untouched.The text was updated successfully, but these errors were encountered: