{"action":"opened","issue":{"url":"https://api.github.com/repos/sybrew/the-seo-framework/issues/395","repository_url":"https://api.github.com/repos/sybrew/the-seo-framework","labels_url":"https://api.github.com/repos/sybrew/the-seo-framework/issues/395/labels{/name}","comments_url":"https://api.github.com/repos/sybrew/the-seo-framework/issues/395/comments","events_url":"https://api.github.com/repos/sybrew/the-seo-framework/issues/395/events","html_url":"https://github.com/sybrew/the-seo-framework/issues/395","id":394000946,"node_id":"MDU6SXNzdWUzOTQwMDA5NDY=","number":395,"title":"Post image showing up in open graph tags for taxonomy/term archives","user":{"login":"xsynaptic","id":1203110,"node_id":"MDQ6VXNlcjEyMDMxMTA=","avatar_url":"https://avatars0.githubusercontent.com/u/1203110?v=4","gravatar_id":"","url":"https://api.github.com/users/xsynaptic","html_url":"https://github.com/xsynaptic","followers_url":"https://api.github.com/users/xsynaptic/followers","following_url":"https://api.github.com/users/xsynaptic/following{/other_user}","gists_url":"https://api.github.com/users/xsynaptic/gists{/gist_id}","starred_url":"https://api.github.com/users/xsynaptic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xsynaptic/subscriptions","organizations_url":"https://api.github.com/users/xsynaptic/orgs","repos_url":"https://api.github.com/users/xsynaptic/repos","events_url":"https://api.github.com/users/xsynaptic/events{/privacy}","received_events_url":"https://api.github.com/users/xsynaptic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-25T10:15:14Z","updated_at":"2018-12-25T10:15:14Z","closed_at":null,"author_association":"NONE","body":"The bug: some taxonomy/term archives will include an `og:image` even through none was assigned.\r\n\r\nPlugin version: latest. I'm also using another plugin called Taxonomy Images to associate images with terms but this does not appear to be in conflict with the SEO Framework. \r\n\r\nFrom sifting through the code it would appear as if the `get_the_real_ID` function is the root cause. This function will return a term ID (via `get_queried_object_id`) but the image generation class assumes whatever ID was returned is a post. If you have a term with the same ID as a post with a featured image then SEO Framework will generate an `og:image` tag for the taxonomy/term archive _from the post_.\r\n\r\nA temporary fix: \r\n\r\n```php\r\nadd_filter('the_seo_framework_og_image_args', function( $args ) {\r\n\tif ( is_category() || is_tag() || is_tax() ) {\r\n\t\t$args['post_id'] = false;\r\n\t}\r\n\treturn $args;\r\n});\r\n```"}}
{"actor":{"display_login":"xsynaptic"}}