[wp-hackers] Negative number / symbol in user meta

John Blackbourn johnbillion+wp at gmail.com
Fri May 3 21:48:35 UTC 2013

On 3 May 2013 21:54, Chris Carter <chris at 314media.com> wrote:
> I'm creating a user map and storing long and lat for users as user meta ..
> when i use get_user_meta, my negative number comes back stripped of the - symbol.
> Can anyone confirm this or have a suggestion?

You might want to check you're not passing it through absint()
somewhere and casting it to an absolute integer.

More information about the wp-hackers mailing list