{"action":"created","issue":{"url":"https://api.github.com/repos/benhuson/Taxonomy-Images/issues/28","labels_url":"https://api.github.com/repos/benhuson/Taxonomy-Images/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/benhuson/Taxonomy-Images/issues/28/comments","events_url":"https://api.github.com/repos/benhuson/Taxonomy-Images/issues/28/events","html_url":"https://github.com/benhuson/Taxonomy-Images/issues/28","id":121628691,"number":28,"title":"Uploading image to custom taxonomy gives error: 'You don't have permission to attach files to this post'","user":{"login":"jtyarks","id":1608791,"avatar_url":"https://avatars.githubusercontent.com/u/1608791?v=3","gravatar_id":"","url":"https://api.github.com/users/jtyarks","html_url":"https://github.com/jtyarks","followers_url":"https://api.github.com/users/jtyarks/followers","following_url":"https://api.github.com/users/jtyarks/following{/other_user}","gists_url":"https://api.github.com/users/jtyarks/gists{/gist_id}","starred_url":"https://api.github.com/users/jtyarks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtyarks/subscriptions","organizations_url":"https://api.github.com/users/jtyarks/orgs","repos_url":"https://api.github.com/users/jtyarks/repos","events_url":"https://api.github.com/users/jtyarks/events{/privacy}","received_events_url":"https://api.github.com/users/jtyarks/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/benhuson/Taxonomy-Images/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"benhuson","id":765285,"avatar_url":"https://avatars.githubusercontent.com/u/765285?v=3","gravatar_id":"","url":"https://api.github.com/users/benhuson","html_url":"https://github.com/benhuson","followers_url":"https://api.github.com/users/benhuson/followers","following_url":"https://api.github.com/users/benhuson/following{/other_user}","gists_url":"https://api.github.com/users/benhuson/gists{/gist_id}","starred_url":"https://api.github.com/users/benhuson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benhuson/subscriptions","organizations_url":"https://api.github.com/users/benhuson/orgs","repos_url":"https://api.github.com/users/benhuson/repos","events_url":"https://api.github.com/users/benhuson/events{/privacy}","received_events_url":"https://api.github.com/users/benhuson/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-12-11T03:22:47Z","updated_at":"2015-12-14T20:46:50Z","closed_at":null,"body":"When trying to upload to an image directly to a custom taxonomy term through the media modal, an error appears. (\"You don't have permission to attach files to this post\")\r\n\r\nNotes:\r\n• Does not happen with core taxonomies\r\n• Happens regardless of user role\r\n• Reproducible on WordPress 4.3 and 4.4\r\n• Happens regardless of theme/plugins activated\r\n• Happens regardless of post type said custom taxonomy is attached to (i.e. core or custom)\r\n• Images already uploaded to media library can be added\r\n\r\nI've created a vanilla install of WP with a Twenty Sixteen child theme—only customization being the custom taxonomies—and created a video to highlight the issue: http://www.pelagic-id.com/bugs/taxonomy-images-upload-error.mov\r\n\r\nThe custom taxonomy code is copied directly from [register_taxonomy Codex page](https://codex.wordpress.org/Function_Reference/register_taxonomy). \r\n\r\nI'm attaching the functions.php file in case that brings any issues to light.\r\n[functions.txt](https://github.com/benhuson/Taxonomy-Images/files/59008/functions.txt)"},"comment":{"url":"https://api.github.com/repos/benhuson/Taxonomy-Images/issues/comments/164554608","html_url":"https://github.com/benhuson/Taxonomy-Images/issues/28#issuecomment-164554608","issue_url":"https://api.github.com/repos/benhuson/Taxonomy-Images/issues/28","id":164554608,"user":{"login":"jtyarks","id":1608791,"avatar_url":"https://avatars.githubusercontent.com/u/1608791?v=3","gravatar_id":"","url":"https://api.github.com/users/jtyarks","html_url":"https://github.com/jtyarks","followers_url":"https://api.github.com/users/jtyarks/followers","following_url":"https://api.github.com/users/jtyarks/following{/other_user}","gists_url":"https://api.github.com/users/jtyarks/gists{/gist_id}","starred_url":"https://api.github.com/users/jtyarks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtyarks/subscriptions","organizations_url":"https://api.github.com/users/jtyarks/orgs","repos_url":"https://api.github.com/users/jtyarks/repos","events_url":"https://api.github.com/users/jtyarks/events{/privacy}","received_events_url":"https://api.github.com/users/jtyarks/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T20:46:50Z","updated_at":"2015-12-14T20:46:50Z","body":"Many thanks for looking into it. I'm afraid creating a new term, refreshing the page, and then uploading image has the same results.\r\n\r\nWould you like access to this environment? It's not being used for anything other than tests."}}