-
Notifications
You must be signed in to change notification settings - Fork 41
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
wp-now: importFile step fails with error "DOMParser is not defined" #210
Comments
I've also just noticed that I specified PHP8.1 but wp-now is actually running 8.0…? |
Ah, #379 in wordpress-playground offers an explanation. Feel free to close this as a duplicate if it's not helpful/needed. |
Duplicate of WordPress/wordpress-playground#379 |
johnhooks
pushed a commit
to johnhooks/playground-tools
that referenced
this issue
Oct 11, 2024
* Introduce jsToPHPTranslator It solves the problem of escaping arguments when writing PHP code in JavaScript. Before: ```js const code = `define('WP_HOME', "${absoluteUrl}");` // if absoluteUrl contains the '"' character, this code will break ``` After: ```js const code = t.define('WP_HOME', absoluteUrl).toString(); // absoluteUrl is correctly escaped and can even be an array // or an object ``` * Format
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am running wp-now with:
My
blueprint-wp-now.json
:I get the following error:
The WXR import file isn't anything fancy, it only contains a single post with some sample content so as to provide a consistent testing environment for plugin development.
#113 looked to have the same issue — although they were using a different step action — but it's been closed as fixed.
The text was updated successfully, but these errors were encountered: