[wp-hackers] Negative number / symbol in user meta
Chris Carter
chris at 314media.com
Fri May 3 22:32:46 UTC 2013
A+. Just wanted to check before I started over...
—
314media.com
On Fri, May 3, 2013 at 4:48 PM, John Blackbourn <johnbillion+wp at gmail.com>
wrote:
> 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.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list