node-wp-cli icon indicating copy to clipboard operation
node-wp-cli copied to clipboard

Fix escaped strings getting set in db

Open tybruffy opened this issue 11 years ago • 1 comments

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.

tybruffy avatar Oct 27 '14 21:10 tybruffy

Is this planned to be merged? i am still having issues with strings resulting with "" between words...

ghost avatar Nov 19 '17 14:11 ghost