{"action":"opened","number":39,"pull_request":{"url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/pulls/39","id":207908832,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3OTA4ODMy","html_url":"https://github.com/justintadlock/breadcrumb-trail/pull/39","diff_url":"https://github.com/justintadlock/breadcrumb-trail/pull/39.diff","patch_url":"https://github.com/justintadlock/breadcrumb-trail/pull/39.patch","issue_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/issues/39","number":39,"state":"open","locked":false,"title":"Fix breadcrumb path in edge cases when using Polylang","user":{"login":"timiwahalahti","id":415544,"node_id":"MDQ6VXNlcjQxNTU0NA==","avatar_url":"https://avatars3.githubusercontent.com/u/415544?v=4","gravatar_id":"","url":"https://api.github.com/users/timiwahalahti","html_url":"https://github.com/timiwahalahti","followers_url":"https://api.github.com/users/timiwahalahti/followers","following_url":"https://api.github.com/users/timiwahalahti/following{/other_user}","gists_url":"https://api.github.com/users/timiwahalahti/gists{/gist_id}","starred_url":"https://api.github.com/users/timiwahalahti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timiwahalahti/subscriptions","organizations_url":"https://api.github.com/users/timiwahalahti/orgs","repos_url":"https://api.github.com/users/timiwahalahti/repos","events_url":"https://api.github.com/users/timiwahalahti/events{/privacy}","received_events_url":"https://api.github.com/users/timiwahalahti/received_events","type":"User","site_admin":false},"body":"In some situations with Polylang translation plugin (look like edge cases), the plugin uses wrong post ID in `add_post_parents` function and that causes breadcrumb to link to the default language. Simple check if Polylang is active and allowing Polylang to check if there are translations available, fixes this issue.\r\n\r\n[`pll_get_post`](https://polylang.pro/doc/function-reference#pll_get_post) returns the id of the translated post or page as integer.","created_at":"2018-08-13T08:50:43Z","updated_at":"2018-08-13T08:50:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/pulls/39/commits","review_comments_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/pulls/39/comments","review_comment_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/pulls/comments{/number}","comments_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/issues/39/comments","statuses_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/statuses/9a4504f12b7274886513799be77c85675312a829","head":{"label":"timiwahalahti:polylang-fixes","ref":"polylang-fixes","sha":"9a4504f12b7274886513799be77c85675312a829","user":{"login":"timiwahalahti","id":415544,"node_id":"MDQ6VXNlcjQxNTU0NA==","avatar_url":"https://avatars3.githubusercontent.com/u/415544?v=4","gravatar_id":"","url":"https://api.github.com/users/timiwahalahti","html_url":"https://github.com/timiwahalahti","followers_url":"https://api.github.com/users/timiwahalahti/followers","following_url":"https://api.github.com/users/timiwahalahti/following{/other_user}","gists_url":"https://api.github.com/users/timiwahalahti/gists{/gist_id}","starred_url":"https://api.github.com/users/timiwahalahti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timiwahalahti/subscriptions","organizations_url":"https://api.github.com/users/timiwahalahti/orgs","repos_url":"https://api.github.com/users/timiwahalahti/repos","events_url":"https://api.github.com/users/timiwahalahti/events{/privacy}","received_events_url":"https://api.github.com/users/timiwahalahti/received_events","type":"User","site_admin":false},"repo":{"id":93646436,"node_id":"MDEwOlJlcG9zaXRvcnk5MzY0NjQzNg==","name":"breadcrumb-trail","full_name":"timiwahalahti/breadcrumb-trail","owner":{"login":"timiwahalahti","id":415544,"node_id":"MDQ6VXNlcjQxNTU0NA==","avatar_url":"https://avatars3.githubusercontent.com/u/415544?v=4","gravatar_id":"","url":"https://api.github.com/users/timiwahalahti","html_url":"https://github.com/timiwahalahti","followers_url":"https://api.github.com/users/timiwahalahti/followers","following_url":"https://api.github.com/users/timiwahalahti/following{/other_user}","gists_url":"https://api.github.com/users/timiwahalahti/gists{/gist_id}","starred_url":"https://api.github.com/users/timiwahalahti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timiwahalahti/subscriptions","organizations_url":"https://api.github.com/users/timiwahalahti/orgs","repos_url":"https://api.github.com/users/timiwahalahti/repos","events_url":"https://api.github.com/users/timiwahalahti/events{/privacy}","received_events_url":"https://api.github.com/users/timiwahalahti/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/timiwahalahti/breadcrumb-trail","description":"Official home of the Breadcrumb Trail plugin for WordPress.","fork":true,"url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail","forks_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/forks","keys_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/keys{/key_id}","collaborators_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/teams","hooks_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/hooks","issue_events_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/issues/events{/number}","events_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/events","assignees_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/assignees{/user}","branches_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/branches{/branch}","tags_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/tags","blobs_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/git/refs{/sha}","trees_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/git/trees{/sha}","statuses_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/statuses/{sha}","languages_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/languages","stargazers_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/stargazers","contributors_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/contributors","subscribers_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/subscribers","subscription_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/subscription","commits_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/commits{/sha}","git_commits_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/git/commits{/sha}","comments_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/comments{/number}","issue_comment_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/issues/comments{/number}","contents_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/contents/{+path}","compare_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/compare/{base}...{head}","merges_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/merges","archive_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/downloads","issues_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/issues{/number}","pulls_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/pulls{/number}","milestones_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/milestones{/number}","notifications_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/labels{/name}","releases_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/releases{/id}","deployments_url":"https://api.github.com/repos/timiwahalahti/breadcrumb-trail/deployments","created_at":"2017-06-07T14:46:06Z","updated_at":"2018-08-13T07:57:38Z","pushed_at":"2018-08-13T08:02:55Z","git_url":"git://github.com/timiwahalahti/breadcrumb-trail.git","ssh_url":"git@github.com:timiwahalahti/breadcrumb-trail.git","clone_url":"https://github.com/timiwahalahti/breadcrumb-trail.git","svn_url":"https://github.com/timiwahalahti/breadcrumb-trail","homepage":null,"size":278,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"justintadlock:master","ref":"master","sha":"c7e4c0f3844f12241a154d45b0494bea4a040734","user":{"login":"justintadlock","id":1816309,"node_id":"MDQ6VXNlcjE4MTYzMDk=","avatar_url":"https://avatars3.githubusercontent.com/u/1816309?v=4","gravatar_id":"","url":"https://api.github.com/users/justintadlock","html_url":"https://github.com/justintadlock","followers_url":"https://api.github.com/users/justintadlock/followers","following_url":"https://api.github.com/users/justintadlock/following{/other_user}","gists_url":"https://api.github.com/users/justintadlock/gists{/gist_id}","starred_url":"https://api.github.com/users/justintadlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justintadlock/subscriptions","organizations_url":"https://api.github.com/users/justintadlock/orgs","repos_url":"https://api.github.com/users/justintadlock/repos","events_url":"https://api.github.com/users/justintadlock/events{/privacy}","received_events_url":"https://api.github.com/users/justintadlock/received_events","type":"User","site_admin":false},"repo":{"id":13243291,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI0MzI5MQ==","name":"breadcrumb-trail","full_name":"justintadlock/breadcrumb-trail","owner":{"login":"justintadlock","id":1816309,"node_id":"MDQ6VXNlcjE4MTYzMDk=","avatar_url":"https://avatars3.githubusercontent.com/u/1816309?v=4","gravatar_id":"","url":"https://api.github.com/users/justintadlock","html_url":"https://github.com/justintadlock","followers_url":"https://api.github.com/users/justintadlock/followers","following_url":"https://api.github.com/users/justintadlock/following{/other_user}","gists_url":"https://api.github.com/users/justintadlock/gists{/gist_id}","starred_url":"https://api.github.com/users/justintadlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justintadlock/subscriptions","organizations_url":"https://api.github.com/users/justintadlock/orgs","repos_url":"https://api.github.com/users/justintadlock/repos","events_url":"https://api.github.com/users/justintadlock/events{/privacy}","received_events_url":"https://api.github.com/users/justintadlock/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/justintadlock/breadcrumb-trail","description":"Official home of the Breadcrumb Trail plugin for WordPress.","fork":false,"url":"https://api.github.com/repos/justintadlock/breadcrumb-trail","forks_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/forks","keys_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/keys{/key_id}","collaborators_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/teams","hooks_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/hooks","issue_events_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/issues/events{/number}","events_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/events","assignees_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/assignees{/user}","branches_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/branches{/branch}","tags_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/tags","blobs_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/git/refs{/sha}","trees_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/git/trees{/sha}","statuses_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/statuses/{sha}","languages_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/languages","stargazers_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/stargazers","contributors_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/contributors","subscribers_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/subscribers","subscription_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/subscription","commits_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/commits{/sha}","git_commits_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/git/commits{/sha}","comments_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/comments{/number}","issue_comment_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/issues/comments{/number}","contents_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/contents/{+path}","compare_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/compare/{base}...{head}","merges_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/merges","archive_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/downloads","issues_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/issues{/number}","pulls_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/pulls{/number}","milestones_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/milestones{/number}","notifications_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/labels{/name}","releases_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/releases{/id}","deployments_url":"https://api.github.com/repos/justintadlock/breadcrumb-trail/deployments","created_at":"2013-10-01T12:35:49Z","updated_at":"2018-08-01T12:20:13Z","pushed_at":"2017-09-26T19:02:41Z","git_url":"git://github.com/justintadlock/breadcrumb-trail.git","ssh_url":"git@github.com:justintadlock/breadcrumb-trail.git","clone_url":"https://github.com/justintadlock/breadcrumb-trail.git","svn_url":"https://github.com/justintadlock/breadcrumb-trail","homepage":null,"size":301,"stargazers_count":100,"watchers_count":100,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":33,"open_issues":10,"watchers":100,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/justintadlock/breadcrumb-trail/pulls/39"},"html":{"href":"https://github.com/justintadlock/breadcrumb-trail/pull/39"},"issue":{"href":"https://api.github.com/repos/justintadlock/breadcrumb-trail/issues/39"},"comments":{"href":"https://api.github.com/repos/justintadlock/breadcrumb-trail/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/justintadlock/breadcrumb-trail/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/justintadlock/breadcrumb-trail/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/justintadlock/breadcrumb-trail/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/justintadlock/breadcrumb-trail/statuses/9a4504f12b7274886513799be77c85675312a829"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":5,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"timiwahalahti"}}