{"action":"closed","number":6,"pull_request":{"url":"https://api.github.com/repos/leobaiano/post-useful/pulls/6","id":32851638,"html_url":"https://github.com/leobaiano/post-useful/pull/6","diff_url":"https://github.com/leobaiano/post-useful/pull/6.diff","patch_url":"https://github.com/leobaiano/post-useful/pull/6.patch","issue_url":"https://api.github.com/repos/leobaiano/post-useful/issues/6","number":6,"state":"closed","locked":false,"title":"Metabox para estatísticas na tela de edição de post","user":{"login":"nicholasio","id":6104632,"avatar_url":"https://avatars.githubusercontent.com/u/6104632?v=3","gravatar_id":"","url":"https://api.github.com/users/nicholasio","html_url":"https://github.com/nicholasio","followers_url":"https://api.github.com/users/nicholasio/followers","following_url":"https://api.github.com/users/nicholasio/following{/other_user}","gists_url":"https://api.github.com/users/nicholasio/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholasio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholasio/subscriptions","organizations_url":"https://api.github.com/users/nicholasio/orgs","repos_url":"https://api.github.com/users/nicholasio/repos","events_url":"https://api.github.com/users/nicholasio/events{/privacy}","received_events_url":"https://api.github.com/users/nicholasio/received_events","type":"User","site_admin":false},"body":"Fiz um esboço para o metabox que exibe as estatísticas, basicamente usei os ícones para mostrar os votos que acharam útil e inúteis, não sei se a ideia era essa, mas tá aí, ainda dá pra melhorar!\r\n\r\nColoquei um filtro para o usuário poder escolher onde exibir as estatísticas:\r\n\r\n```php\r\n$this->post_types_metabox = apply_filters( 'post_useful_statistics_post_types', array('post') );\r\n```\r\nDepois que fizer a tela de configuração podemos usar as configurações para sobrescrever os filtros ou ao contrário.\r\n","created_at":"2015-04-08T11:41:09Z","updated_at":"2015-04-08T14:02:45Z","closed_at":"2015-04-08T14:02:45Z","merged_at":"2015-04-08T14:02:45Z","merge_commit_sha":"cc2a61490c6d26b46104aed7b2db84578894f193","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/leobaiano/post-useful/pulls/6/commits","review_comments_url":"https://api.github.com/repos/leobaiano/post-useful/pulls/6/comments","review_comment_url":"https://api.github.com/repos/leobaiano/post-useful/pulls/comments{/number}","comments_url":"https://api.github.com/repos/leobaiano/post-useful/issues/6/comments","statuses_url":"https://api.github.com/repos/leobaiano/post-useful/statuses/6c51066436c10a861973a176d0884024607cf6dc","head":{"label":"nicholasio:issue-2","ref":"issue-2","sha":"6c51066436c10a861973a176d0884024607cf6dc","user":{"login":"nicholasio","id":6104632,"avatar_url":"https://avatars.githubusercontent.com/u/6104632?v=3","gravatar_id":"","url":"https://api.github.com/users/nicholasio","html_url":"https://github.com/nicholasio","followers_url":"https://api.github.com/users/nicholasio/followers","following_url":"https://api.github.com/users/nicholasio/following{/other_user}","gists_url":"https://api.github.com/users/nicholasio/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholasio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholasio/subscriptions","organizations_url":"https://api.github.com/users/nicholasio/orgs","repos_url":"https://api.github.com/users/nicholasio/repos","events_url":"https://api.github.com/users/nicholasio/events{/privacy}","received_events_url":"https://api.github.com/users/nicholasio/received_events","type":"User","site_admin":false},"repo":{"id":33569619,"name":"post-useful","full_name":"nicholasio/post-useful","owner":{"login":"nicholasio","id":6104632,"avatar_url":"https://avatars.githubusercontent.com/u/6104632?v=3","gravatar_id":"","url":"https://api.github.com/users/nicholasio","html_url":"https://github.com/nicholasio","followers_url":"https://api.github.com/users/nicholasio/followers","following_url":"https://api.github.com/users/nicholasio/following{/other_user}","gists_url":"https://api.github.com/users/nicholasio/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholasio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholasio/subscriptions","organizations_url":"https://api.github.com/users/nicholasio/orgs","repos_url":"https://api.github.com/users/nicholasio/repos","events_url":"https://api.github.com/users/nicholasio/events{/privacy}","received_events_url":"https://api.github.com/users/nicholasio/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nicholasio/post-useful","description":"Plugin WordPress Post Useful","fork":true,"url":"https://api.github.com/repos/nicholasio/post-useful","forks_url":"https://api.github.com/repos/nicholasio/post-useful/forks","keys_url":"https://api.github.com/repos/nicholasio/post-useful/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nicholasio/post-useful/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nicholasio/post-useful/teams","hooks_url":"https://api.github.com/repos/nicholasio/post-useful/hooks","issue_events_url":"https://api.github.com/repos/nicholasio/post-useful/issues/events{/number}","events_url":"https://api.github.com/repos/nicholasio/post-useful/events","assignees_url":"https://api.github.com/repos/nicholasio/post-useful/assignees{/user}","branches_url":"https://api.github.com/repos/nicholasio/post-useful/branches{/branch}","tags_url":"https://api.github.com/repos/nicholasio/post-useful/tags","blobs_url":"https://api.github.com/repos/nicholasio/post-useful/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nicholasio/post-useful/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nicholasio/post-useful/git/refs{/sha}","trees_url":"https://api.github.com/repos/nicholasio/post-useful/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nicholasio/post-useful/statuses/{sha}","languages_url":"https://api.github.com/repos/nicholasio/post-useful/languages","stargazers_url":"https://api.github.com/repos/nicholasio/post-useful/stargazers","contributors_url":"https://api.github.com/repos/nicholasio/post-useful/contributors","subscribers_url":"https://api.github.com/repos/nicholasio/post-useful/subscribers","subscription_url":"https://api.github.com/repos/nicholasio/post-useful/subscription","commits_url":"https://api.github.com/repos/nicholasio/post-useful/commits{/sha}","git_commits_url":"https://api.github.com/repos/nicholasio/post-useful/git/commits{/sha}","comments_url":"https://api.github.com/repos/nicholasio/post-useful/comments{/number}","issue_comment_url":"https://api.github.com/repos/nicholasio/post-useful/issues/comments{/number}","contents_url":"https://api.github.com/repos/nicholasio/post-useful/contents/{+path}","compare_url":"https://api.github.com/repos/nicholasio/post-useful/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nicholasio/post-useful/merges","archive_url":"https://api.github.com/repos/nicholasio/post-useful/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nicholasio/post-useful/downloads","issues_url":"https://api.github.com/repos/nicholasio/post-useful/issues{/number}","pulls_url":"https://api.github.com/repos/nicholasio/post-useful/pulls{/number}","milestones_url":"https://api.github.com/repos/nicholasio/post-useful/milestones{/number}","notifications_url":"https://api.github.com/repos/nicholasio/post-useful/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nicholasio/post-useful/labels{/name}","releases_url":"https://api.github.com/repos/nicholasio/post-useful/releases{/id}","created_at":"2015-04-07T21:37:00Z","updated_at":"2015-04-07T21:37:00Z","pushed_at":"2015-04-08T11:31:55Z","git_url":"git://github.com/nicholasio/post-useful.git","ssh_url":"git@github.com:nicholasio/post-useful.git","clone_url":"https://github.com/nicholasio/post-useful.git","svn_url":"https://github.com/nicholasio/post-useful","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"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":"leobaiano:master","ref":"master","sha":"485d0eb9996b1687748befaeb5a5238247641f76","user":{"login":"leobaiano","id":957257,"avatar_url":"https://avatars.githubusercontent.com/u/957257?v=3","gravatar_id":"","url":"https://api.github.com/users/leobaiano","html_url":"https://github.com/leobaiano","followers_url":"https://api.github.com/users/leobaiano/followers","following_url":"https://api.github.com/users/leobaiano/following{/other_user}","gists_url":"https://api.github.com/users/leobaiano/gists{/gist_id}","starred_url":"https://api.github.com/users/leobaiano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leobaiano/subscriptions","organizations_url":"https://api.github.com/users/leobaiano/orgs","repos_url":"https://api.github.com/users/leobaiano/repos","events_url":"https://api.github.com/users/leobaiano/events{/privacy}","received_events_url":"https://api.github.com/users/leobaiano/received_events","type":"User","site_admin":false},"repo":{"id":33533991,"name":"post-useful","full_name":"leobaiano/post-useful","owner":{"login":"leobaiano","id":957257,"avatar_url":"https://avatars.githubusercontent.com/u/957257?v=3","gravatar_id":"","url":"https://api.github.com/users/leobaiano","html_url":"https://github.com/leobaiano","followers_url":"https://api.github.com/users/leobaiano/followers","following_url":"https://api.github.com/users/leobaiano/following{/other_user}","gists_url":"https://api.github.com/users/leobaiano/gists{/gist_id}","starred_url":"https://api.github.com/users/leobaiano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leobaiano/subscriptions","organizations_url":"https://api.github.com/users/leobaiano/orgs","repos_url":"https://api.github.com/users/leobaiano/repos","events_url":"https://api.github.com/users/leobaiano/events{/privacy}","received_events_url":"https://api.github.com/users/leobaiano/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leobaiano/post-useful","description":"Plugin WordPress Post Useful","fork":false,"url":"https://api.github.com/repos/leobaiano/post-useful","forks_url":"https://api.github.com/repos/leobaiano/post-useful/forks","keys_url":"https://api.github.com/repos/leobaiano/post-useful/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leobaiano/post-useful/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leobaiano/post-useful/teams","hooks_url":"https://api.github.com/repos/leobaiano/post-useful/hooks","issue_events_url":"https://api.github.com/repos/leobaiano/post-useful/issues/events{/number}","events_url":"https://api.github.com/repos/leobaiano/post-useful/events","assignees_url":"https://api.github.com/repos/leobaiano/post-useful/assignees{/user}","branches_url":"https://api.github.com/repos/leobaiano/post-useful/branches{/branch}","tags_url":"https://api.github.com/repos/leobaiano/post-useful/tags","blobs_url":"https://api.github.com/repos/leobaiano/post-useful/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leobaiano/post-useful/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leobaiano/post-useful/git/refs{/sha}","trees_url":"https://api.github.com/repos/leobaiano/post-useful/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leobaiano/post-useful/statuses/{sha}","languages_url":"https://api.github.com/repos/leobaiano/post-useful/languages","stargazers_url":"https://api.github.com/repos/leobaiano/post-useful/stargazers","contributors_url":"https://api.github.com/repos/leobaiano/post-useful/contributors","subscribers_url":"https://api.github.com/repos/leobaiano/post-useful/subscribers","subscription_url":"https://api.github.com/repos/leobaiano/post-useful/subscription","commits_url":"https://api.github.com/repos/leobaiano/post-useful/commits{/sha}","git_commits_url":"https://api.github.com/repos/leobaiano/post-useful/git/commits{/sha}","comments_url":"https://api.github.com/repos/leobaiano/post-useful/comments{/number}","issue_comment_url":"https://api.github.com/repos/leobaiano/post-useful/issues/comments{/number}","contents_url":"https://api.github.com/repos/leobaiano/post-useful/contents/{+path}","compare_url":"https://api.github.com/repos/leobaiano/post-useful/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leobaiano/post-useful/merges","archive_url":"https://api.github.com/repos/leobaiano/post-useful/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leobaiano/post-useful/downloads","issues_url":"https://api.github.com/repos/leobaiano/post-useful/issues{/number}","pulls_url":"https://api.github.com/repos/leobaiano/post-useful/pulls{/number}","milestones_url":"https://api.github.com/repos/leobaiano/post-useful/milestones{/number}","notifications_url":"https://api.github.com/repos/leobaiano/post-useful/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leobaiano/post-useful/labels{/name}","releases_url":"https://api.github.com/repos/leobaiano/post-useful/releases{/id}","created_at":"2015-04-07T09:26:46Z","updated_at":"2015-04-08T13:37:21Z","pushed_at":"2015-04-08T14:02:45Z","git_url":"git://github.com/leobaiano/post-useful.git","ssh_url":"git@github.com:leobaiano/post-useful.git","clone_url":"https://github.com/leobaiano/post-useful.git","svn_url":"https://github.com/leobaiano/post-useful","homepage":null,"size":0,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/leobaiano/post-useful/pulls/6"},"html":{"href":"https://github.com/leobaiano/post-useful/pull/6"},"issue":{"href":"https://api.github.com/repos/leobaiano/post-useful/issues/6"},"comments":{"href":"https://api.github.com/repos/leobaiano/post-useful/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/leobaiano/post-useful/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/leobaiano/post-useful/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/leobaiano/post-useful/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/leobaiano/post-useful/statuses/6c51066436c10a861973a176d0884024607cf6dc"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"leobaiano","id":957257,"avatar_url":"https://avatars.githubusercontent.com/u/957257?v=3","gravatar_id":"","url":"https://api.github.com/users/leobaiano","html_url":"https://github.com/leobaiano","followers_url":"https://api.github.com/users/leobaiano/followers","following_url":"https://api.github.com/users/leobaiano/following{/other_user}","gists_url":"https://api.github.com/users/leobaiano/gists{/gist_id}","starred_url":"https://api.github.com/users/leobaiano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leobaiano/subscriptions","organizations_url":"https://api.github.com/users/leobaiano/orgs","repos_url":"https://api.github.com/users/leobaiano/repos","events_url":"https://api.github.com/users/leobaiano/events{/privacy}","received_events_url":"https://api.github.com/users/leobaiano/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"commits":2,"additions":160,"deletions":11,"changed_files":3}}