-
Notifications
You must be signed in to change notification settings - Fork 43
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: blueprint with installPlugin steps fails on subsequent runs #209
Comments
This could be related to WordPress/wordpress-playground#1157 |
Yes, it looks like a different expression of the same issue.
The problem is the workaround fails on the initial run of wp-now…
For now the only workaround seems to be to use |
Thank you for reporting @squelchdesign! I just added this to the project board. |
…rdPress#209) * Export Playground as a full site export * 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 ``` * Import/export support: WXR, WXZ, and full-site This commit adds multiple ways to move data in and out of Playground. Specifically, it implements the following client functions: * zipEntireSite() * replaceSite() * exportWXR() * exportWXZ() * submitImporterForm() The WXR format is one natively used by the official WordPress importer plugin. The WXZ format is supported through the following plugin: https://github.com/akirk/export-wxz https://github.com/akirk/wordpress-importer The full-site export is simply a zip archive containing the entire site.
Possibly related to #178?
I'm developing a plugin which will integrate with the font-awesome plugin, so I have a
blueprint.json
which installs the font-awesome plugin automatically. On the first run it installs perfectly. On a subsequent run, without doing a--reset
, it tries to install the plugin again and then dies with an error:I can't see a way of saying "install this plugin, unless it's already there". Obviously I can work around this by always executing wp-now with the
--reset
option, but it'd be useful to be able to retain the state of the installation between runs.wp-now is my new favourite tool though!
The text was updated successfully, but these errors were encountered: