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

user meta add throws an exception

Open maraymer opened this issue 8 years ago • 0 comments

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

maraymer avatar Mar 02 '16 09:03 maraymer