Comments (6)
Did I understand right, you mean to basically clone the existing importWxr function to do the same stuff using the old importer?
Yes, that's what I had in mind. Another alternative solution would be for you to use the WP CLI for importing.
Is ImportFile and ImportWxr the same? I can't find any docs about ImportFile.
I'm not sure, I don't have experience with it. Maybe the source code can help you.
So I have to come back to my initial impulse and like to ask why the v2 is used here, while it is buggy, not well documented and not backwards compatible?
@adamziel might have the context.
from wordpress-playground.
So I have to come back to my initial impulse and like to ask why the v2 is used here, while it is buggy, not well documented and not backwards compatible?
Because v1 had even more issues. Sadly, there doesn't seem to be a single importer that would solve all the problems. I know folks in Automattic use at least three different implementations, depending on the use-case. What we really need here is a new, reliable WXR importer that would just work, stream-handle the incoming data, correctly parse character entity references, pause, resume on failure etc. @dmsnell's work on the HTML and XML parser will come handy here.
from wordpress-playground.
I'll close this issue since the question of disabling importer v2 is answered. I'm very aware of the limitations and would love to see a new reliable importer that would solve it all.
from wordpress-playground.
This is how the importWxr step works.
You could install the plugin by using the importFile
step and use a runPHP step to execute the import similarly to how the importWxr
step works.
from wordpress-playground.
@bgrgicak Thank you, this is the direction I hoped for. Let's see if I can fiddle this out.
-
Did I understand right, you mean to basically clone the existing importWxr function to do the same stuff using the old importer?
-
Is ImportFile and ImportWxr the same? I can't find any docs about ImportFile.
from wordpress-playground.
Two hours ago, I wanted to close this already, as I thought it might be better to go with the new Importer, instead of writing playgrounds steps by myself, but as longer I'm trying to use the v2 importer, things get worse and more worse.
So I have to come back to my initial impulse and like to ask why the v2 is used here, while it is buggy, not well documented and not backwards compatible?
The v2 importer is an un-neccesary burden for the playground.
from wordpress-playground.
Related Issues (20)
- Use global $wp_filter instead of an mu-plugin HOT 6
- Error when running "nx run docs-site:build" the first time HOT 4
- Explore biome as a replacement for eslint/prettier
- Build a Slide Block + export to pdf
- Memory access out of bounds with WooCommerce development plugin HOT 18
- GitHub Integration: Allow new themes/plugins to be exported in a PR HOT 2
- Integrate wp-cli directly on playground.wordpress.net HOT 1
- Support SQLite at the network connection level
- Loggers: Silence irrelevant error logs in unit tests
- The activatePlugin step doesn't throw an error when given invalid inputs
- Playground could not serve the request. HOT 8
- Improve log modal HOT 2
- Expired GH artifact makes install via plugin-proxy.php seem broken HOT 3
- Static files run as PHP when path includes directory like `<some-dir>.php/` HOT 10
- Unexpected error when exporting to Github HOT 14
- ifAlreadyInstalled does not work
- Remove "Step" word after each step heading
- runPHPWithOptions step in the example doesn't match with the heading HOT 2
- wpCLI step in the example doesn't match with the heading
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordpress-playground.