{"action":"created","comment":{"url":"https://api.github.com/repos/inpsyde/MultilingualPress/pulls/comments/130092483","pull_request_review_id":52933280,"id":130092483,"diff_hunk":"@@ -143,10 +145,11 @@ private function collect_matches(\n \n \t\t$combined_value   = $language->get_priority() * $user_priority;\n \t\t$possible[]       = array (\n-\t\t\t'priority' => $combined_value,\n-\t\t\t'url'      => $url,\n-\t\t\t'language' => $language->get_name( 'http' ),\n-\t\t\t'site_id'  => $site_id\n+\t\t\t'priority'          => $combined_value,\n+\t\t\t'url'               => $url,\n+\t\t\t'language'          => $language->get_name( 'http' ),\n+\t\t\t'site_id'           => $site_id,\n+\t\t\t'target_content_id' => $translation->get_target_content_id(),","path":"src/inc/redirect/Mlp_Language_Negotiation.php","position":45,"original_position":45,"commit_id":"75b52f7038c425fb89fafe7b3e5bf39b28676bbd","original_commit_id":"75b52f7038c425fb89fafe7b3e5bf39b28676bbd","user":{"login":"tfrommen","id":6049306,"avatar_url":"https://avatars2.githubusercontent.com/u/6049306?v=4","gravatar_id":"","url":"https://api.github.com/users/tfrommen","html_url":"https://github.com/tfrommen","followers_url":"https://api.github.com/users/tfrommen/followers","following_url":"https://api.github.com/users/tfrommen/following{/other_user}","gists_url":"https://api.github.com/users/tfrommen/gists{/gist_id}","starred_url":"https://api.github.com/users/tfrommen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfrommen/subscriptions","organizations_url":"https://api.github.com/users/tfrommen/orgs","repos_url":"https://api.github.com/users/tfrommen/repos","events_url":"https://api.github.com/users/tfrommen/events{/privacy}","received_events_url":"https://api.github.com/users/tfrommen/received_events","type":"User","site_admin":false},"body":"Again, `content_id`, of course.","created_at":"2017-07-28T13:43:59Z","updated_at":"2017-07-28T13:45:42Z","html_url":"https://github.com/inpsyde/MultilingualPress/pull/271#discussion_r130092483","pull_request_url":"https://api.github.com/repos/inpsyde/MultilingualPress/pulls/271","_links":{"self":{"href":"https://api.github.com/repos/inpsyde/MultilingualPress/pulls/comments/130092483"},"html":{"href":"https://github.com/inpsyde/MultilingualPress/pull/271#discussion_r130092483"},"pull_request":{"href":"https://api.github.com/repos/inpsyde/MultilingualPress/pulls/271"}}},"pull_request":{"url":"https://api.github.com/repos/inpsyde/MultilingualPress/pulls/271","id":132948360,"html_url":"https://github.com/inpsyde/MultilingualPress/pull/271","diff_url":"https://github.com/inpsyde/MultilingualPress/pull/271.diff","patch_url":"https://github.com/inpsyde/MultilingualPress/pull/271.patch","issue_url":"https://api.github.com/repos/inpsyde/MultilingualPress/issues/271","number":271,"state":"open","locked":false,"title":"Make getting redirect options more flexible","user":{"login":"diedexx","id":5352634,"avatar_url":"https://avatars0.githubusercontent.com/u/5352634?v=4","gravatar_id":"","url":"https://api.github.com/users/diedexx","html_url":"https://github.com/diedexx","followers_url":"https://api.github.com/users/diedexx/followers","following_url":"https://api.github.com/users/diedexx/following{/other_user}","gists_url":"https://api.github.com/users/diedexx/gists{/gist_id}","starred_url":"https://api.github.com/users/diedexx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diedexx/subscriptions","organizations_url":"https://api.github.com/users/diedexx/orgs","repos_url":"https://api.github.com/users/diedexx/repos","events_url":"https://api.github.com/users/diedexx/events{/privacy}","received_events_url":"https://api.github.com/users/diedexx/received_events","type":"User","site_admin":false},"body":"<!--\r\nThanks for contributing&mdash;you rock!\r\n\r\nPlease note:\r\n- These comments won't show up when you submit the pull request.\r\n- Please make sure your changes respect the WordPress Coding Standards:\r\n  - https://make.wordpress.org/core/handbook/best-practices/coding-standards/\r\n- In case you introduced a new action or filter hook, please also include inline documentation:\r\n  - https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/php/\r\n- Please create tests, if you can.\r\n-->\r\n\r\nI'm currently trying to fetch meta data of a translated version of a post. \r\n <details>\r\n<summary>I'm using an instance of the MLP_Language_Negotiation for this.</summary>\r\n\r\n``` PHP\r\n$validator                     = new \\Mlp_Language_Header_Validator();\r\n$parser                        = new \\Mlp_Accept_Header_Parser( $validator );\r\n$api                           = apply_filters( 'mlp_language_api', null );\r\n// ...\r\n$language_negotiation_instance = new \\Mlp_Language_Negotiation( $api, $parser );\r\n```\r\n</details>\r\n\r\nWith the Language_negotiation I get the best matching translation for a page, which is not the page I'm currently on), for which I want to fetch meta data. \r\n\r\n#### What's Included in This Pull Request\r\n\r\n* Adds the `target_content_id` to the redirect matches so it can be stored or used in API calls.\r\n* Adds the possibility to pass args to `get_redirect_match` (in my case to fetch the redirect matches for any post, not just the current page)\r\n","created_at":"2017-07-28T11:21:22Z","updated_at":"2017-07-28T13:45:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4087a016f347de027f810a15e3785d49ba19519c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/inpsyde/MultilingualPress/pulls/271/commits","review_comments_url":"https://api.github.com/repos/inpsyde/MultilingualPress/pulls/271/comments","review_comment_url":"https://api.github.com/repos/inpsyde/MultilingualPress/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inpsyde/MultilingualPress/issues/271/comments","statuses_url":"https://api.github.com/repos/inpsyde/MultilingualPress/statuses/75b52f7038c425fb89fafe7b3e5bf39b28676bbd","head":{"label":"diedexx:enhance-matches","ref":"enhance-matches","sha":"75b52f7038c425fb89fafe7b3e5bf39b28676bbd","user":{"login":"diedexx","id":5352634,"avatar_url":"https://avatars0.githubusercontent.com/u/5352634?v=4","gravatar_id":"","url":"https://api.github.com/users/diedexx","html_url":"https://github.com/diedexx","followers_url":"https://api.github.com/users/diedexx/followers","following_url":"https://api.github.com/users/diedexx/following{/other_user}","gists_url":"https://api.github.com/users/diedexx/gists{/gist_id}","starred_url":"https://api.github.com/users/diedexx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diedexx/subscriptions","organizations_url":"https://api.github.com/users/diedexx/orgs","repos_url":"https://api.github.com/users/diedexx/repos","events_url":"https://api.github.com/users/diedexx/events{/privacy}","received_events_url":"https://api.github.com/users/diedexx/received_events","type":"User","site_admin":false},"repo":{"id":97568051,"name":"MultilingualPress","full_name":"diedexx/MultilingualPress","owner":{"login":"diedexx","id":5352634,"avatar_url":"https://avatars0.githubusercontent.com/u/5352634?v=4","gravatar_id":"","url":"https://api.github.com/users/diedexx","html_url":"https://github.com/diedexx","followers_url":"https://api.github.com/users/diedexx/followers","following_url":"https://api.github.com/users/diedexx/following{/other_user}","gists_url":"https://api.github.com/users/diedexx/gists{/gist_id}","starred_url":"https://api.github.com/users/diedexx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diedexx/subscriptions","organizations_url":"https://api.github.com/users/diedexx/orgs","repos_url":"https://api.github.com/users/diedexx/repos","events_url":"https://api.github.com/users/diedexx/events{/privacy}","received_events_url":"https://api.github.com/users/diedexx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/diedexx/MultilingualPress","description":"The multisite-based free open source plugin for your multilingual WordPress websites.","fork":true,"url":"https://api.github.com/repos/diedexx/MultilingualPress","forks_url":"https://api.github.com/repos/diedexx/MultilingualPress/forks","keys_url":"https://api.github.com/repos/diedexx/MultilingualPress/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diedexx/MultilingualPress/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diedexx/MultilingualPress/teams","hooks_url":"https://api.github.com/repos/diedexx/MultilingualPress/hooks","issue_events_url":"https://api.github.com/repos/diedexx/MultilingualPress/issues/events{/number}","events_url":"https://api.github.com/repos/diedexx/MultilingualPress/events","assignees_url":"https://api.github.com/repos/diedexx/MultilingualPress/assignees{/user}","branches_url":"https://api.github.com/repos/diedexx/MultilingualPress/branches{/branch}","tags_url":"https://api.github.com/repos/diedexx/MultilingualPress/tags","blobs_url":"https://api.github.com/repos/diedexx/MultilingualPress/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diedexx/MultilingualPress/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diedexx/MultilingualPress/git/refs{/sha}","trees_url":"https://api.github.com/repos/diedexx/MultilingualPress/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diedexx/MultilingualPress/statuses/{sha}","languages_url":"https://api.github.com/repos/diedexx/MultilingualPress/languages","stargazers_url":"https://api.github.com/repos/diedexx/MultilingualPress/stargazers","contributors_url":"https://api.github.com/repos/diedexx/MultilingualPress/contributors","subscribers_url":"https://api.github.com/repos/diedexx/MultilingualPress/subscribers","subscription_url":"https://api.github.com/repos/diedexx/MultilingualPress/subscription","commits_url":"https://api.github.com/repos/diedexx/MultilingualPress/commits{/sha}","git_commits_url":"https://api.github.com/repos/diedexx/MultilingualPress/git/commits{/sha}","comments_url":"https://api.github.com/repos/diedexx/MultilingualPress/comments{/number}","issue_comment_url":"https://api.github.com/repos/diedexx/MultilingualPress/issues/comments{/number}","contents_url":"https://api.github.com/repos/diedexx/MultilingualPress/contents/{+path}","compare_url":"https://api.github.com/repos/diedexx/MultilingualPress/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diedexx/MultilingualPress/merges","archive_url":"https://api.github.com/repos/diedexx/MultilingualPress/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diedexx/MultilingualPress/downloads","issues_url":"https://api.github.com/repos/diedexx/MultilingualPress/issues{/number}","pulls_url":"https://api.github.com/repos/diedexx/MultilingualPress/pulls{/number}","milestones_url":"https://api.github.com/repos/diedexx/MultilingualPress/milestones{/number}","notifications_url":"https://api.github.com/repos/diedexx/MultilingualPress/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diedexx/MultilingualPress/labels{/name}","releases_url":"https://api.github.com/repos/diedexx/MultilingualPress/releases{/id}","deployments_url":"https://api.github.com/repos/diedexx/MultilingualPress/deployments","created_at":"2017-07-18T07:31:42Z","updated_at":"2017-07-18T07:31:44Z","pushed_at":"2017-07-28T10:58:55Z","git_url":"git://github.com/diedexx/MultilingualPress.git","ssh_url":"git@github.com:diedexx/MultilingualPress.git","clone_url":"https://github.com/diedexx/MultilingualPress.git","svn_url":"https://github.com/diedexx/MultilingualPress","homepage":"https://wordpress.org/plugins/multilingual-press/","size":6740,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"inpsyde:2.7","ref":"2.7","sha":"b40ff037abf581daf3fff2ec70d2a842b4444bb8","user":{"login":"inpsyde","id":571549,"avatar_url":"https://avatars0.githubusercontent.com/u/571549?v=4","gravatar_id":"","url":"https://api.github.com/users/inpsyde","html_url":"https://github.com/inpsyde","followers_url":"https://api.github.com/users/inpsyde/followers","following_url":"https://api.github.com/users/inpsyde/following{/other_user}","gists_url":"https://api.github.com/users/inpsyde/gists{/gist_id}","starred_url":"https://api.github.com/users/inpsyde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inpsyde/subscriptions","organizations_url":"https://api.github.com/users/inpsyde/orgs","repos_url":"https://api.github.com/users/inpsyde/repos","events_url":"https://api.github.com/users/inpsyde/events{/privacy}","received_events_url":"https://api.github.com/users/inpsyde/received_events","type":"Organization","site_admin":false},"repo":{"id":3032642,"name":"MultilingualPress","full_name":"inpsyde/MultilingualPress","owner":{"login":"inpsyde","id":571549,"avatar_url":"https://avatars0.githubusercontent.com/u/571549?v=4","gravatar_id":"","url":"https://api.github.com/users/inpsyde","html_url":"https://github.com/inpsyde","followers_url":"https://api.github.com/users/inpsyde/followers","following_url":"https://api.github.com/users/inpsyde/following{/other_user}","gists_url":"https://api.github.com/users/inpsyde/gists{/gist_id}","starred_url":"https://api.github.com/users/inpsyde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inpsyde/subscriptions","organizations_url":"https://api.github.com/users/inpsyde/orgs","repos_url":"https://api.github.com/users/inpsyde/repos","events_url":"https://api.github.com/users/inpsyde/events{/privacy}","received_events_url":"https://api.github.com/users/inpsyde/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inpsyde/MultilingualPress","description":"The multisite-based free open source plugin for your multilingual WordPress websites.","fork":false,"url":"https://api.github.com/repos/inpsyde/MultilingualPress","forks_url":"https://api.github.com/repos/inpsyde/MultilingualPress/forks","keys_url":"https://api.github.com/repos/inpsyde/MultilingualPress/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inpsyde/MultilingualPress/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inpsyde/MultilingualPress/teams","hooks_url":"https://api.github.com/repos/inpsyde/MultilingualPress/hooks","issue_events_url":"https://api.github.com/repos/inpsyde/MultilingualPress/issues/events{/number}","events_url":"https://api.github.com/repos/inpsyde/MultilingualPress/events","assignees_url":"https://api.github.com/repos/inpsyde/MultilingualPress/assignees{/user}","branches_url":"https://api.github.com/repos/inpsyde/MultilingualPress/branches{/branch}","tags_url":"https://api.github.com/repos/inpsyde/MultilingualPress/tags","blobs_url":"https://api.github.com/repos/inpsyde/MultilingualPress/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inpsyde/MultilingualPress/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inpsyde/MultilingualPress/git/refs{/sha}","trees_url":"https://api.github.com/repos/inpsyde/MultilingualPress/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inpsyde/MultilingualPress/statuses/{sha}","languages_url":"https://api.github.com/repos/inpsyde/MultilingualPress/languages","stargazers_url":"https://api.github.com/repos/inpsyde/MultilingualPress/stargazers","contributors_url":"https://api.github.com/repos/inpsyde/MultilingualPress/contributors","subscribers_url":"https://api.github.com/repos/inpsyde/MultilingualPress/subscribers","subscription_url":"https://api.github.com/repos/inpsyde/MultilingualPress/subscription","commits_url":"https://api.github.com/repos/inpsyde/MultilingualPress/commits{/sha}","git_commits_url":"https://api.github.com/repos/inpsyde/MultilingualPress/git/commits{/sha}","comments_url":"https://api.github.com/repos/inpsyde/MultilingualPress/comments{/number}","issue_comment_url":"https://api.github.com/repos/inpsyde/MultilingualPress/issues/comments{/number}","contents_url":"https://api.github.com/repos/inpsyde/MultilingualPress/contents/{+path}","compare_url":"https://api.github.com/repos/inpsyde/MultilingualPress/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inpsyde/MultilingualPress/merges","archive_url":"https://api.github.com/repos/inpsyde/MultilingualPress/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inpsyde/MultilingualPress/downloads","issues_url":"https://api.github.com/repos/inpsyde/MultilingualPress/issues{/number}","pulls_url":"https://api.github.com/repos/inpsyde/MultilingualPress/pulls{/number}","milestones_url":"https://api.github.com/repos/inpsyde/MultilingualPress/milestones{/number}","notifications_url":"https://api.github.com/repos/inpsyde/MultilingualPress/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inpsyde/MultilingualPress/labels{/name}","releases_url":"https://api.github.com/repos/inpsyde/MultilingualPress/releases{/id}","deployments_url":"https://api.github.com/repos/inpsyde/MultilingualPress/deployments","created_at":"2011-12-22T08:21:05Z","updated_at":"2017-07-26T17:25:17Z","pushed_at":"2017-07-28T13:30:24Z","git_url":"git://github.com/inpsyde/MultilingualPress.git","ssh_url":"git@github.com:inpsyde/MultilingualPress.git","clone_url":"https://github.com/inpsyde/MultilingualPress.git","svn_url":"https://github.com/inpsyde/MultilingualPress","homepage":"https://wordpress.org/plugins/multilingual-press/","size":6780,"stargazers_count":172,"watchers_count":172,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":32,"forks":36,"open_issues":32,"watchers":172,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inpsyde/MultilingualPress/pulls/271"},"html":{"href":"https://github.com/inpsyde/MultilingualPress/pull/271"},"issue":{"href":"https://api.github.com/repos/inpsyde/MultilingualPress/issues/271"},"comments":{"href":"https://api.github.com/repos/inpsyde/MultilingualPress/issues/271/comments"},"review_comments":{"href":"https://api.github.com/repos/inpsyde/MultilingualPress/pulls/271/comments"},"review_comment":{"href":"https://api.github.com/repos/inpsyde/MultilingualPress/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inpsyde/MultilingualPress/pulls/271/commits"},"statuses":{"href":"https://api.github.com/repos/inpsyde/MultilingualPress/statuses/75b52f7038c425fb89fafe7b3e5bf39b28676bbd"}}}}
{"actor":{"display_login":"tfrommen"}}