[wp-trac] [WordPress Trac] #22259: Round image EXIF float data.
WordPress Trac
noreply at wordpress.org
Tue Oct 23 02:35:35 UTC 2012
#22259: Round image EXIF float data.
-----------------------------+--------------------------
Reporter: jcakec | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: General
Version: | Severity: normal
Keywords: has-patch |
-----------------------------+--------------------------
Hello,
On changeset 21292 you made some changes to stripslashes as follows: Only
run stripslashes() in stripslashes_deep() for strings.
Prior to these changes, when you called wp_read_image_metadata() all
values were saved as strings. Now they are saves as the correct type, but
as floats are approximations, instead of getting values like 0.0004 we are
getting values of
0.0004000000000000000191686944095437183932517655193805694580078125
These values are making some galleries to misbehave with EXIF data, so
could we round the values so we don't get these huge numbers, and that way
we can still use the current plugins and widgets while the owners update
them.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22259>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list