node-wp-cli
node-wp-cli copied to clipboard
Fix escaped strings getting set in db
Currently running something like this:
wp.option.update('blogdescription', "A new tagline", function(err, data) {
console.log("Tagline/description set.");
});
can result in the string A\ new\ tagline being set in the database. Wrapping the values of the args in double quotes when creating the cli args fixes this.
Is this planned to be merged? i am still having issues with strings resulting with "" between words...