Round image EXIF float data.
|Reported by:||jcakec||Owned by:||nacin|
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.
Change History (6)
- Component changed from General to Media
- Milestone changed from Awaiting Review to 3.5
- Version set to trunk