{"action":"created","issue":{"url":"https://api.github.com/repos/ResponsiveImagesCG/wp-tevko-responsive-images/issues/153","labels_url":"https://api.github.com/repos/ResponsiveImagesCG/wp-tevko-responsive-images/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/ResponsiveImagesCG/wp-tevko-responsive-images/issues/153/comments","events_url":"https://api.github.com/repos/ResponsiveImagesCG/wp-tevko-responsive-images/issues/153/events","html_url":"https://github.com/ResponsiveImagesCG/wp-tevko-responsive-images/issues/153","id":102534152,"number":153,"title":"Warning in media page for svg image","user":{"login":"grappler","id":1785641,"avatar_url":"https://avatars.githubusercontent.com/u/1785641?v=3","gravatar_id":"","url":"https://api.github.com/users/grappler","html_url":"https://github.com/grappler","followers_url":"https://api.github.com/users/grappler/followers","following_url":"https://api.github.com/users/grappler/following{/other_user}","gists_url":"https://api.github.com/users/grappler/gists{/gist_id}","starred_url":"https://api.github.com/users/grappler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grappler/subscriptions","organizations_url":"https://api.github.com/users/grappler/orgs","repos_url":"https://api.github.com/users/grappler/repos","events_url":"https://api.github.com/users/grappler/events{/privacy}","received_events_url":"https://api.github.com/users/grappler/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-22T12:52:07Z","updated_at":"2015-08-22T16:21:58Z","closed_at":"2015-08-22T16:21:58Z","body":"I get the following warnings on the media page(wp-admin/upload.php) for svg images that I have uploaded\r\n\r\n```\r\nWarning: Illegal string offset 'sizes' in plugins/ricg-responsive-images/wp-tevko-responsive-images.php on line 165\r\n\r\nWarning: Illegal string offset 'width' in plugins/ricg-responsive-images/wp-tevko-responsive-images.php on line 169\r\n\r\nWarning: Illegal string offset 'height' in plugins/ricg-responsive-images/wp-tevko-responsive-images.php on line 170\r\n\r\nWarning: Illegal string offset 'file' in ricg-responsive-images/wp-tevko-responsive-images.php on line 171\r\n\r\nWarning: Illegal string offset 'file' inplugins/ricg-responsive-images/wp-tevko-responsive-images.php on line 173\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ResponsiveImagesCG/wp-tevko-responsive-images/issues/comments/133721177","html_url":"https://github.com/ResponsiveImagesCG/wp-tevko-responsive-images/issues/153#issuecomment-133721177","issue_url":"https://api.github.com/repos/ResponsiveImagesCG/wp-tevko-responsive-images/issues/153","id":133721177,"user":{"login":"grappler","id":1785641,"avatar_url":"https://avatars.githubusercontent.com/u/1785641?v=3","gravatar_id":"","url":"https://api.github.com/users/grappler","html_url":"https://github.com/grappler","followers_url":"https://api.github.com/users/grappler/followers","following_url":"https://api.github.com/users/grappler/following{/other_user}","gists_url":"https://api.github.com/users/grappler/gists{/gist_id}","starred_url":"https://api.github.com/users/grappler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grappler/subscriptions","organizations_url":"https://api.github.com/users/grappler/orgs","repos_url":"https://api.github.com/users/grappler/repos","events_url":"https://api.github.com/users/grappler/events{/privacy}","received_events_url":"https://api.github.com/users/grappler/received_events","type":"User","site_admin":false},"created_at":"2015-08-22T16:21:58Z","updated_at":"2015-08-22T16:21:58Z","body":"The code that I am using is:\r\n```php\r\n/**\r\n * Allow SVG to be uploaded\r\n */\r\nfunction wpzoo_svgs_upload_mimes( $mimes ) {\r\n\r\n\tif( current_user_can( 'administrator' ) ) {\r\n\t\t$mimes['svg'] = 'image/svg+xml';\r\n\t}\r\n\r\n\treturn $mimes;\r\n}\r\nadd_filter( 'upload_mimes', 'wpzoo_svgs_upload_mimes' );\r\n```\r\n\r\nI tested the commit and it fixes the issue.\r\n\r\nWhen do you plan to release the next update?\r\n"}}