{"action":"created","comment":{"url":"https://api.github.com/repos/Yoast/Yoast-theme-public/pulls/comments/70946501","id":70946501,"diff_hunk":"@@ -84,6 +84,21 @@ private function get_children_menu_data( $main_menu_item ) {\n \t\treturn $data;\n \t}\n \n+\t/**\n+\t * Check if the submenu item is active.\n+\t *\n+\t * @param Menu_Item $sub_menu_item\n+\t *\n+\t * @return bool\n+\t */\n+\tprivate function sub_menu_item_is_active( Menu_Item $sub_menu_item ) {\n+\t\t$primary_category    = yoast_get_primary_term( 'category', get_the_ID() );","path":"php/class-yoast-navigation.php","position":21,"original_position":21,"commit_id":"23452a934e3624ce49bdcfdab19c7663509509ca","original_commit_id":"23452a934e3624ce49bdcfdab19c7663509509ca","user":{"login":"moorscode","id":2005352,"avatar_url":"https://avatars.githubusercontent.com/u/2005352?v=3","gravatar_id":"","url":"https://api.github.com/users/moorscode","html_url":"https://github.com/moorscode","followers_url":"https://api.github.com/users/moorscode/followers","following_url":"https://api.github.com/users/moorscode/following{/other_user}","gists_url":"https://api.github.com/users/moorscode/gists{/gist_id}","starred_url":"https://api.github.com/users/moorscode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moorscode/subscriptions","organizations_url":"https://api.github.com/users/moorscode/orgs","repos_url":"https://api.github.com/users/moorscode/repos","events_url":"https://api.github.com/users/moorscode/events{/privacy}","received_events_url":"https://api.github.com/users/moorscode/received_events","type":"User","site_admin":false},"body":"`yoast_get_primary_term` wont be available everywhere","created_at":"2016-07-15T09:37:18Z","updated_at":"2016-07-15T09:37:18Z","html_url":"https://github.com/Yoast/Yoast-theme-public/pull/34#discussion_r70946501","pull_request_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/Yoast/Yoast-theme-public/pulls/comments/70946501"},"html":{"href":"https://github.com/Yoast/Yoast-theme-public/pull/34#discussion_r70946501"},"pull_request":{"href":"https://api.github.com/repos/Yoast/Yoast-theme-public/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/Yoast/Yoast-theme-public/pulls/34","id":77588394,"html_url":"https://github.com/Yoast/Yoast-theme-public/pull/34","diff_url":"https://github.com/Yoast/Yoast-theme-public/pull/34.diff","patch_url":"https://github.com/Yoast/Yoast-theme-public/pull/34.patch","issue_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/issues/34","number":34,"state":"open","locked":false,"title":"Highlight primary category in menu","user":{"login":"diedexx","id":5352634,"avatar_url":"https://avatars.githubusercontent.com/u/5352634?v=3","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":"Sets submenuitems as 'active' if the post you're watching has the same _primary_ category as the label of the menuitem","created_at":"2016-07-15T09:35:17Z","updated_at":"2016-07-15T09:37:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a396dd4c9f010f0dc0e616b6ef2be7a9fc138ef","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/pulls/34/commits","review_comments_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/pulls/34/comments","review_comment_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/issues/34/comments","statuses_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/statuses/23452a934e3624ce49bdcfdab19c7663509509ca","head":{"label":"Yoast:DE/highlight-primary-category-in-menu","ref":"DE/highlight-primary-category-in-menu","sha":"23452a934e3624ce49bdcfdab19c7663509509ca","user":{"login":"Yoast","id":4690436,"avatar_url":"https://avatars.githubusercontent.com/u/4690436?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoast","html_url":"https://github.com/Yoast","followers_url":"https://api.github.com/users/Yoast/followers","following_url":"https://api.github.com/users/Yoast/following{/other_user}","gists_url":"https://api.github.com/users/Yoast/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoast/subscriptions","organizations_url":"https://api.github.com/users/Yoast/orgs","repos_url":"https://api.github.com/users/Yoast/repos","events_url":"https://api.github.com/users/Yoast/events{/privacy}","received_events_url":"https://api.github.com/users/Yoast/received_events","type":"Organization","site_admin":false},"repo":{"id":42649365,"name":"Yoast-theme-public","full_name":"Yoast/Yoast-theme-public","owner":{"login":"Yoast","id":4690436,"avatar_url":"https://avatars.githubusercontent.com/u/4690436?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoast","html_url":"https://github.com/Yoast","followers_url":"https://api.github.com/users/Yoast/followers","following_url":"https://api.github.com/users/Yoast/following{/other_user}","gists_url":"https://api.github.com/users/Yoast/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoast/subscriptions","organizations_url":"https://api.github.com/users/Yoast/orgs","repos_url":"https://api.github.com/users/Yoast/repos","events_url":"https://api.github.com/users/Yoast/events{/privacy}","received_events_url":"https://api.github.com/users/Yoast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yoast/Yoast-theme-public","description":"The Yoast.com theme","fork":false,"url":"https://api.github.com/repos/Yoast/Yoast-theme-public","forks_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/forks","keys_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/teams","hooks_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/hooks","issue_events_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/issues/events{/number}","events_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/events","assignees_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/assignees{/user}","branches_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/branches{/branch}","tags_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/tags","blobs_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/statuses/{sha}","languages_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/languages","stargazers_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/stargazers","contributors_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/contributors","subscribers_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/subscribers","subscription_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/subscription","commits_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/contents/{+path}","compare_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/merges","archive_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/downloads","issues_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/issues{/number}","pulls_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/pulls{/number}","milestones_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/milestones{/number}","notifications_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/labels{/name}","releases_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/releases{/id}","deployments_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/deployments","created_at":"2015-09-17T10:14:37Z","updated_at":"2016-07-14T12:46:42Z","pushed_at":"2016-07-15T09:35:17Z","git_url":"git://github.com/Yoast/Yoast-theme-public.git","ssh_url":"git@github.com:Yoast/Yoast-theme-public.git","clone_url":"https://github.com/Yoast/Yoast-theme-public.git","svn_url":"https://github.com/Yoast/Yoast-theme-public","homepage":null,"size":6799,"stargazers_count":5,"watchers_count":5,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":8,"forks":5,"open_issues":8,"watchers":5,"default_branch":"master"}},"base":{"label":"Yoast:master","ref":"master","sha":"10fe4e152a1800ee832d89e51b0da0fede39dee0","user":{"login":"Yoast","id":4690436,"avatar_url":"https://avatars.githubusercontent.com/u/4690436?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoast","html_url":"https://github.com/Yoast","followers_url":"https://api.github.com/users/Yoast/followers","following_url":"https://api.github.com/users/Yoast/following{/other_user}","gists_url":"https://api.github.com/users/Yoast/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoast/subscriptions","organizations_url":"https://api.github.com/users/Yoast/orgs","repos_url":"https://api.github.com/users/Yoast/repos","events_url":"https://api.github.com/users/Yoast/events{/privacy}","received_events_url":"https://api.github.com/users/Yoast/received_events","type":"Organization","site_admin":false},"repo":{"id":42649365,"name":"Yoast-theme-public","full_name":"Yoast/Yoast-theme-public","owner":{"login":"Yoast","id":4690436,"avatar_url":"https://avatars.githubusercontent.com/u/4690436?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoast","html_url":"https://github.com/Yoast","followers_url":"https://api.github.com/users/Yoast/followers","following_url":"https://api.github.com/users/Yoast/following{/other_user}","gists_url":"https://api.github.com/users/Yoast/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoast/subscriptions","organizations_url":"https://api.github.com/users/Yoast/orgs","repos_url":"https://api.github.com/users/Yoast/repos","events_url":"https://api.github.com/users/Yoast/events{/privacy}","received_events_url":"https://api.github.com/users/Yoast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yoast/Yoast-theme-public","description":"The Yoast.com theme","fork":false,"url":"https://api.github.com/repos/Yoast/Yoast-theme-public","forks_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/forks","keys_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/teams","hooks_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/hooks","issue_events_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/issues/events{/number}","events_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/events","assignees_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/assignees{/user}","branches_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/branches{/branch}","tags_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/tags","blobs_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/statuses/{sha}","languages_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/languages","stargazers_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/stargazers","contributors_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/contributors","subscribers_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/subscribers","subscription_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/subscription","commits_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/contents/{+path}","compare_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/merges","archive_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/downloads","issues_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/issues{/number}","pulls_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/pulls{/number}","milestones_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/milestones{/number}","notifications_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/labels{/name}","releases_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/releases{/id}","deployments_url":"https://api.github.com/repos/Yoast/Yoast-theme-public/deployments","created_at":"2015-09-17T10:14:37Z","updated_at":"2016-07-14T12:46:42Z","pushed_at":"2016-07-15T09:35:17Z","git_url":"git://github.com/Yoast/Yoast-theme-public.git","ssh_url":"git@github.com:Yoast/Yoast-theme-public.git","clone_url":"https://github.com/Yoast/Yoast-theme-public.git","svn_url":"https://github.com/Yoast/Yoast-theme-public","homepage":null,"size":6799,"stargazers_count":5,"watchers_count":5,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":8,"forks":5,"open_issues":8,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Yoast/Yoast-theme-public/pulls/34"},"html":{"href":"https://github.com/Yoast/Yoast-theme-public/pull/34"},"issue":{"href":"https://api.github.com/repos/Yoast/Yoast-theme-public/issues/34"},"comments":{"href":"https://api.github.com/repos/Yoast/Yoast-theme-public/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/Yoast/Yoast-theme-public/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/Yoast/Yoast-theme-public/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yoast/Yoast-theme-public/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/Yoast/Yoast-theme-public/statuses/23452a934e3624ce49bdcfdab19c7663509509ca"}}}}
{"actor":{"display_login":"moorscode"}}