node-wp-cli
node-wp-cli copied to clipboard
wp core install: title containing spaces gets escaped
WP.core.install({"url":"http://localhost/mysite", "title":"site name", "admin_user":admin_user, "admin_password":admin_password, "admin_email":admin_email}, function(err, result) { });
After install the title will show as: site\ name
escapeshell in utils.js seems to be the cause.
When replacing it with this escapeshellarg function: http://phpjs.org/functions/escapeshellarg/ it seems to work.
@sjoerdlo: I've experienced this issue when using WP.core.download as well, which will then create a new folder called site\ name.
Have you already submitted a PR?