Automattic/jetpack — pull request #647 by rase- (2014-06-04 16:42:01+00:00)
Title: Tiled Gallery: Fix image meta encoding.

Image meta is now encoded by calling `esc_attr` on the result of mapping strval over the image meta attributes, instead of mapping `esc_attr`. This way `json_encode` can properly escape any quotes inside the attribute, before being attr encoded.

This is also how Carousel handles image meta.