gtg092x / node-wp-cli

Node JS Wrapper for the Wordpress CLI
MIT License
40 stars 14 forks source link

user meta add throws an exception #9

Open maraymer opened 8 years ago

maraymer commented 8 years ago

I'm working pretty intensely with node-wp-cli for a wordpress integration project.

I had a pesky debugging session with user meta add today.

It appears that there is a problem with grabbing the third parameter (meta value)?

This got me digging further into the code where I noticed that like 97 of WP.js reads:

if(required.length>args.length)

Shouldn't that be:

if(required.length>arg.length)

I changed this line and was able to call user meta add (but wp-cli appears to have a bug in that command !)

Matthew