MeisterGit / wordpress-java

Automatically exported from code.google.com/p/wordpress-java
Other
0 stars 0 forks source link

Wordpress.getUserInfo() fails with WordPress 3.3.1 as userid's type has changed #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The type of userid in the User request has changed from String to integer in 
WordPress 3.3.1.

When I call  net.bican.wordpress.Wordpress.getUserInfo() I get the message 
      Warning: value "4" is invalid for "userid", setting it to "null"

I'm using wordpress-java 0.4 on Linux with WordPress 3.3.1.

The enclosed patch fixes the problem for wp 3.3.1 and appears to work with 
WordPress 3.2 as well.

thanks, Stuart Pook

Original issue reported on code.google.com by slp1...@gmail.com on 19 Jan 2012 at 4:34

Attachments:

GoogleCodeExporter commented 9 years ago
Do you know if there is a way to map these integers back to user names?

Original comment by c...@bican.net on 20 Jan 2012 at 12:22

GoogleCodeExporter commented 9 years ago
no, I don't know, sorry

Original comment by slp1...@gmail.com on 20 Jan 2012 at 1:21

GoogleCodeExporter commented 9 years ago
fixed by r92.

Original comment by c...@bican.net on 8 Feb 2012 at 4:04