{"action":"created","comment":{"url":"https://api.github.com/repos/wpbrasil/odin/pulls/comments/42976889","id":42976889,"diff_hunk":"@@ -44,10 +44,20 @@ public function __construct( $id, $title, $post_type = 'post', $context = 'norma\n \t\t// Load scripts.\n \t\tadd_action( 'admin_enqueue_scripts', array( $this, 'scripts' ) );\n \n-\t\t// Add post type columns\n-        add_filter( 'manage_edit-' . $post_type . '_columns', array($this, 'add_columns' ));\n-        // Set post type columns value\n-        add_action( 'manage_' . $post_type . '_posts_custom_column', array($this, 'set_columns_value'), 10,2);\n+\t\t//check if $post_type is an Array\n+\t\tif(is_array($post_type)){\n+\t\t\tforEach($post_type as $p_type) {","path":"core/classes/class-metabox.php","position":10,"original_position":10,"commit_id":"9cc685db2c5fa8012fb8712cb413ecd53690fce8","original_commit_id":"9cc685db2c5fa8012fb8712cb413ecd53690fce8","user":{"login":"fdaciuk","id":487669,"avatar_url":"https://avatars.githubusercontent.com/u/487669?v=3","gravatar_id":"","url":"https://api.github.com/users/fdaciuk","html_url":"https://github.com/fdaciuk","followers_url":"https://api.github.com/users/fdaciuk/followers","following_url":"https://api.github.com/users/fdaciuk/following{/other_user}","gists_url":"https://api.github.com/users/fdaciuk/gists{/gist_id}","starred_url":"https://api.github.com/users/fdaciuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdaciuk/subscriptions","organizations_url":"https://api.github.com/users/fdaciuk/orgs","repos_url":"https://api.github.com/users/fdaciuk/repos","events_url":"https://api.github.com/users/fdaciuk/events{/privacy}","received_events_url":"https://api.github.com/users/fdaciuk/received_events","type":"User","site_admin":false},"body":"-1\r\n`foreach`, tudo minúsculo. Não tenho certeza, mas acho que com `E` maiúsculo deve funcionar só no Windows, pois não é _case sensitive_.","created_at":"2015-10-26T10:25:55Z","updated_at":"2015-10-26T10:25:55Z","html_url":"https://github.com/wpbrasil/odin/pull/362#discussion_r42976889","pull_request_url":"https://api.github.com/repos/wpbrasil/odin/pulls/362","_links":{"self":{"href":"https://api.github.com/repos/wpbrasil/odin/pulls/comments/42976889"},"html":{"href":"https://github.com/wpbrasil/odin/pull/362#discussion_r42976889"},"pull_request":{"href":"https://api.github.com/repos/wpbrasil/odin/pulls/362"}}},"pull_request":{"url":"https://api.github.com/repos/wpbrasil/odin/pulls/362","id":48701639,"html_url":"https://github.com/wpbrasil/odin/pull/362","diff_url":"https://github.com/wpbrasil/odin/pull/362.diff","patch_url":"https://github.com/wpbrasil/odin/pull/362.patch","issue_url":"https://api.github.com/repos/wpbrasil/odin/issues/362","number":362,"state":"open","locked":false,"title":"fixes \" Array to string conversion\" notice","user":{"login":"romuloctba","id":2955932,"avatar_url":"https://avatars.githubusercontent.com/u/2955932?v=3","gravatar_id":"","url":"https://api.github.com/users/romuloctba","html_url":"https://github.com/romuloctba","followers_url":"https://api.github.com/users/romuloctba/followers","following_url":"https://api.github.com/users/romuloctba/following{/other_user}","gists_url":"https://api.github.com/users/romuloctba/gists{/gist_id}","starred_url":"https://api.github.com/users/romuloctba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romuloctba/subscriptions","organizations_url":"https://api.github.com/users/romuloctba/orgs","repos_url":"https://api.github.com/users/romuloctba/repos","events_url":"https://api.github.com/users/romuloctba/events{/privacy}","received_events_url":"https://api.github.com/users/romuloctba/received_events","type":"User","site_admin":false},"body":"When assigning more than a CPT to a meta-box, using an Array(), I got \r\n```\r\nNotice: Array to string conversion in class-metabox.php on line 48\r\n\r\nNotice: Array to string conversion in class-metabox.php on line 50\r\n```\r\n\r\nthe if(is_array()) and the forEach fixes this notice","created_at":"2015-10-26T04:55:37Z","updated_at":"2015-10-26T10:25:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"642418f91a7afcbfd906a27c4d858ac14e06f0cd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wpbrasil/odin/pulls/362/commits","review_comments_url":"https://api.github.com/repos/wpbrasil/odin/pulls/362/comments","review_comment_url":"https://api.github.com/repos/wpbrasil/odin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wpbrasil/odin/issues/362/comments","statuses_url":"https://api.github.com/repos/wpbrasil/odin/statuses/9cc685db2c5fa8012fb8712cb413ecd53690fce8","head":{"label":"wpbrasil:fix-odin-metabox","ref":"fix-odin-metabox","sha":"9cc685db2c5fa8012fb8712cb413ecd53690fce8","user":{"login":"wpbrasil","id":3344909,"avatar_url":"https://avatars.githubusercontent.com/u/3344909?v=3","gravatar_id":"","url":"https://api.github.com/users/wpbrasil","html_url":"https://github.com/wpbrasil","followers_url":"https://api.github.com/users/wpbrasil/followers","following_url":"https://api.github.com/users/wpbrasil/following{/other_user}","gists_url":"https://api.github.com/users/wpbrasil/gists{/gist_id}","starred_url":"https://api.github.com/users/wpbrasil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wpbrasil/subscriptions","organizations_url":"https://api.github.com/users/wpbrasil/orgs","repos_url":"https://api.github.com/users/wpbrasil/repos","events_url":"https://api.github.com/users/wpbrasil/events{/privacy}","received_events_url":"https://api.github.com/users/wpbrasil/received_events","type":"Organization","site_admin":false},"repo":{"id":7764882,"name":"odin","full_name":"wpbrasil/odin","owner":{"login":"wpbrasil","id":3344909,"avatar_url":"https://avatars.githubusercontent.com/u/3344909?v=3","gravatar_id":"","url":"https://api.github.com/users/wpbrasil","html_url":"https://github.com/wpbrasil","followers_url":"https://api.github.com/users/wpbrasil/followers","following_url":"https://api.github.com/users/wpbrasil/following{/other_user}","gists_url":"https://api.github.com/users/wpbrasil/gists{/gist_id}","starred_url":"https://api.github.com/users/wpbrasil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wpbrasil/subscriptions","organizations_url":"https://api.github.com/users/wpbrasil/orgs","repos_url":"https://api.github.com/users/wpbrasil/repos","events_url":"https://api.github.com/users/wpbrasil/events{/privacy}","received_events_url":"https://api.github.com/users/wpbrasil/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wpbrasil/odin","description":"WordPress base theme","fork":false,"url":"https://api.github.com/repos/wpbrasil/odin","forks_url":"https://api.github.com/repos/wpbrasil/odin/forks","keys_url":"https://api.github.com/repos/wpbrasil/odin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wpbrasil/odin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wpbrasil/odin/teams","hooks_url":"https://api.github.com/repos/wpbrasil/odin/hooks","issue_events_url":"https://api.github.com/repos/wpbrasil/odin/issues/events{/number}","events_url":"https://api.github.com/repos/wpbrasil/odin/events","assignees_url":"https://api.github.com/repos/wpbrasil/odin/assignees{/user}","branches_url":"https://api.github.com/repos/wpbrasil/odin/branches{/branch}","tags_url":"https://api.github.com/repos/wpbrasil/odin/tags","blobs_url":"https://api.github.com/repos/wpbrasil/odin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wpbrasil/odin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wpbrasil/odin/git/refs{/sha}","trees_url":"https://api.github.com/repos/wpbrasil/odin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wpbrasil/odin/statuses/{sha}","languages_url":"https://api.github.com/repos/wpbrasil/odin/languages","stargazers_url":"https://api.github.com/repos/wpbrasil/odin/stargazers","contributors_url":"https://api.github.com/repos/wpbrasil/odin/contributors","subscribers_url":"https://api.github.com/repos/wpbrasil/odin/subscribers","subscription_url":"https://api.github.com/repos/wpbrasil/odin/subscription","commits_url":"https://api.github.com/repos/wpbrasil/odin/commits{/sha}","git_commits_url":"https://api.github.com/repos/wpbrasil/odin/git/commits{/sha}","comments_url":"https://api.github.com/repos/wpbrasil/odin/comments{/number}","issue_comment_url":"https://api.github.com/repos/wpbrasil/odin/issues/comments{/number}","contents_url":"https://api.github.com/repos/wpbrasil/odin/contents/{+path}","compare_url":"https://api.github.com/repos/wpbrasil/odin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wpbrasil/odin/merges","archive_url":"https://api.github.com/repos/wpbrasil/odin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wpbrasil/odin/downloads","issues_url":"https://api.github.com/repos/wpbrasil/odin/issues{/number}","pulls_url":"https://api.github.com/repos/wpbrasil/odin/pulls{/number}","milestones_url":"https://api.github.com/repos/wpbrasil/odin/milestones{/number}","notifications_url":"https://api.github.com/repos/wpbrasil/odin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wpbrasil/odin/labels{/name}","releases_url":"https://api.github.com/repos/wpbrasil/odin/releases{/id}","created_at":"2013-01-23T00:51:13Z","updated_at":"2015-10-21T20:39:11Z","pushed_at":"2015-10-26T05:10:50Z","git_url":"git://github.com/wpbrasil/odin.git","ssh_url":"git@github.com:wpbrasil/odin.git","clone_url":"https://github.com/wpbrasil/odin.git","svn_url":"https://github.com/wpbrasil/odin","homepage":"http://wpod.in/","size":6436,"stargazers_count":241,"watchers_count":241,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":148,"mirror_url":null,"open_issues_count":19,"forks":148,"open_issues":19,"watchers":241,"default_branch":"master"}},"base":{"label":"wpbrasil:master","ref":"master","sha":"d65f7c36fdf5f60b83539ef06252ca9b5e40d0ed","user":{"login":"wpbrasil","id":3344909,"avatar_url":"https://avatars.githubusercontent.com/u/3344909?v=3","gravatar_id":"","url":"https://api.github.com/users/wpbrasil","html_url":"https://github.com/wpbrasil","followers_url":"https://api.github.com/users/wpbrasil/followers","following_url":"https://api.github.com/users/wpbrasil/following{/other_user}","gists_url":"https://api.github.com/users/wpbrasil/gists{/gist_id}","starred_url":"https://api.github.com/users/wpbrasil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wpbrasil/subscriptions","organizations_url":"https://api.github.com/users/wpbrasil/orgs","repos_url":"https://api.github.com/users/wpbrasil/repos","events_url":"https://api.github.com/users/wpbrasil/events{/privacy}","received_events_url":"https://api.github.com/users/wpbrasil/received_events","type":"Organization","site_admin":false},"repo":{"id":7764882,"name":"odin","full_name":"wpbrasil/odin","owner":{"login":"wpbrasil","id":3344909,"avatar_url":"https://avatars.githubusercontent.com/u/3344909?v=3","gravatar_id":"","url":"https://api.github.com/users/wpbrasil","html_url":"https://github.com/wpbrasil","followers_url":"https://api.github.com/users/wpbrasil/followers","following_url":"https://api.github.com/users/wpbrasil/following{/other_user}","gists_url":"https://api.github.com/users/wpbrasil/gists{/gist_id}","starred_url":"https://api.github.com/users/wpbrasil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wpbrasil/subscriptions","organizations_url":"https://api.github.com/users/wpbrasil/orgs","repos_url":"https://api.github.com/users/wpbrasil/repos","events_url":"https://api.github.com/users/wpbrasil/events{/privacy}","received_events_url":"https://api.github.com/users/wpbrasil/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wpbrasil/odin","description":"WordPress base theme","fork":false,"url":"https://api.github.com/repos/wpbrasil/odin","forks_url":"https://api.github.com/repos/wpbrasil/odin/forks","keys_url":"https://api.github.com/repos/wpbrasil/odin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wpbrasil/odin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wpbrasil/odin/teams","hooks_url":"https://api.github.com/repos/wpbrasil/odin/hooks","issue_events_url":"https://api.github.com/repos/wpbrasil/odin/issues/events{/number}","events_url":"https://api.github.com/repos/wpbrasil/odin/events","assignees_url":"https://api.github.com/repos/wpbrasil/odin/assignees{/user}","branches_url":"https://api.github.com/repos/wpbrasil/odin/branches{/branch}","tags_url":"https://api.github.com/repos/wpbrasil/odin/tags","blobs_url":"https://api.github.com/repos/wpbrasil/odin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wpbrasil/odin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wpbrasil/odin/git/refs{/sha}","trees_url":"https://api.github.com/repos/wpbrasil/odin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wpbrasil/odin/statuses/{sha}","languages_url":"https://api.github.com/repos/wpbrasil/odin/languages","stargazers_url":"https://api.github.com/repos/wpbrasil/odin/stargazers","contributors_url":"https://api.github.com/repos/wpbrasil/odin/contributors","subscribers_url":"https://api.github.com/repos/wpbrasil/odin/subscribers","subscription_url":"https://api.github.com/repos/wpbrasil/odin/subscription","commits_url":"https://api.github.com/repos/wpbrasil/odin/commits{/sha}","git_commits_url":"https://api.github.com/repos/wpbrasil/odin/git/commits{/sha}","comments_url":"https://api.github.com/repos/wpbrasil/odin/comments{/number}","issue_comment_url":"https://api.github.com/repos/wpbrasil/odin/issues/comments{/number}","contents_url":"https://api.github.com/repos/wpbrasil/odin/contents/{+path}","compare_url":"https://api.github.com/repos/wpbrasil/odin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wpbrasil/odin/merges","archive_url":"https://api.github.com/repos/wpbrasil/odin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wpbrasil/odin/downloads","issues_url":"https://api.github.com/repos/wpbrasil/odin/issues{/number}","pulls_url":"https://api.github.com/repos/wpbrasil/odin/pulls{/number}","milestones_url":"https://api.github.com/repos/wpbrasil/odin/milestones{/number}","notifications_url":"https://api.github.com/repos/wpbrasil/odin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wpbrasil/odin/labels{/name}","releases_url":"https://api.github.com/repos/wpbrasil/odin/releases{/id}","created_at":"2013-01-23T00:51:13Z","updated_at":"2015-10-21T20:39:11Z","pushed_at":"2015-10-26T05:10:50Z","git_url":"git://github.com/wpbrasil/odin.git","ssh_url":"git@github.com:wpbrasil/odin.git","clone_url":"https://github.com/wpbrasil/odin.git","svn_url":"https://github.com/wpbrasil/odin","homepage":"http://wpod.in/","size":6436,"stargazers_count":241,"watchers_count":241,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":148,"mirror_url":null,"open_issues_count":19,"forks":148,"open_issues":19,"watchers":241,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wpbrasil/odin/pulls/362"},"html":{"href":"https://github.com/wpbrasil/odin/pull/362"},"issue":{"href":"https://api.github.com/repos/wpbrasil/odin/issues/362"},"comments":{"href":"https://api.github.com/repos/wpbrasil/odin/issues/362/comments"},"review_comments":{"href":"https://api.github.com/repos/wpbrasil/odin/pulls/362/comments"},"review_comment":{"href":"https://api.github.com/repos/wpbrasil/odin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wpbrasil/odin/pulls/362/commits"},"statuses":{"href":"https://api.github.com/repos/wpbrasil/odin/statuses/9cc685db2c5fa8012fb8712cb413ecd53690fce8"}}}}