Giter VIP home page Giter VIP logo

Comments (6)

bgrgicak avatar bgrgicak commented on June 2, 2024 1

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.

adamziel avatar adamziel commented on June 2, 2024 1

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.

adamziel avatar adamziel commented on June 2, 2024 1

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.

bgrgicak avatar bgrgicak commented on June 2, 2024

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.

carstingaxion avatar carstingaxion commented on June 2, 2024

@bgrgicak Thank you, this is the direction I hoped for. Let's see if I can fiddle this out.

  1. Did I understand right, you mean to basically clone the existing importWxr function to do the same stuff using the old importer?

  2. Is ImportFile and ImportWxr the same? I can't find any docs about ImportFile.

from wordpress-playground.

carstingaxion avatar carstingaxion commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.