{"action":"created","issue":{"url":"https://api.github.com/repos/creativecommons/wordpress-plugin/issues/14","repository_url":"https://api.github.com/repos/creativecommons/wordpress-plugin","labels_url":"https://api.github.com/repos/creativecommons/wordpress-plugin/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/creativecommons/wordpress-plugin/issues/14/comments","events_url":"https://api.github.com/repos/creativecommons/wordpress-plugin/issues/14/events","html_url":"https://github.com/creativecommons/wordpress-plugin/issues/14","id":167978452,"number":14,"title":"wp_get_attachment_metadata() strips what it thinks are html tags in Exif metadata","user":{"login":"robmyers","id":21746,"avatar_url":"https://avatars.githubusercontent.com/u/21746?v=3","gravatar_id":"","url":"https://api.github.com/users/robmyers","html_url":"https://github.com/robmyers","followers_url":"https://api.github.com/users/robmyers/followers","following_url":"https://api.github.com/users/robmyers/following{/other_user}","gists_url":"https://api.github.com/users/robmyers/gists{/gist_id}","starred_url":"https://api.github.com/users/robmyers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robmyers/subscriptions","organizations_url":"https://api.github.com/users/robmyers/orgs","repos_url":"https://api.github.com/users/robmyers/repos","events_url":"https://api.github.com/users/robmyers/events{/privacy}","received_events_url":"https://api.github.com/users/robmyers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-07-27T23:15:22Z","updated_at":"2016-07-29T21:15:23Z","closed_at":null,"body":"If we have a jpeg with a Copyright field like:\r\n\r\n    <no> tags, tags are <stripped>\r\n\r\nthen when we upload the file to WordPress and fetch the Exif metadata using:\r\n\r\n    wp_get_attachment_metadata($att_id[0], true);\r\n\r\nthen the string we get for Copyright is:\r\n\r\n     tags, tags are \r\n\r\nI assume this is due to WordPress taking the sensible precaution of stripping HTML tags from outside input, but it does mean that the format we are using for license URLs falls foul of this.\r\n\r\nI've chased this down the call stack a way and I can't find anywhere to change it. I'd rather not have to use php's exif parsing, although I've just tested that and it doesn't have the same problem.\r\n\r\nInvestigating further, but if anyone knows of a quick fix for this please let me know."},"comment":{"url":"https://api.github.com/repos/creativecommons/wordpress-plugin/issues/comments/236295495","html_url":"https://github.com/creativecommons/wordpress-plugin/issues/14#issuecomment-236295495","issue_url":"https://api.github.com/repos/creativecommons/wordpress-plugin/issues/14","id":236295495,"user":{"login":"mattl","id":33296,"avatar_url":"https://avatars.githubusercontent.com/u/33296?v=3","gravatar_id":"","url":"https://api.github.com/users/mattl","html_url":"https://github.com/mattl","followers_url":"https://api.github.com/users/mattl/followers","following_url":"https://api.github.com/users/mattl/following{/other_user}","gists_url":"https://api.github.com/users/mattl/gists{/gist_id}","starred_url":"https://api.github.com/users/mattl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattl/subscriptions","organizations_url":"https://api.github.com/users/mattl/orgs","repos_url":"https://api.github.com/users/mattl/repos","events_url":"https://api.github.com/users/mattl/events{/privacy}","received_events_url":"https://api.github.com/users/mattl/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T21:15:23Z","updated_at":"2016-07-29T21:15:23Z","body":"The worry I have there is that we'd wind up adding extra captions to existing images all over the place."}}
{"actor":{"display_login":"mattl"}}