{"action":"created","comment":{"url":"https://api.github.com/repos/sudar/bulk-delete/pulls/comments/168986408","pull_request_review_id":97434872,"id":168986408,"diff_hunk":"@@ -212,12 +212,18 @@ public static function render_delete_posts_by_category_box() {\n         <table class=\"form-table\">\n             <tr>\n                 <td scope=\"row\">\n-\t\t\t\t<select class=\"select2\" name=\"smbd_cats[]\" multiple data-placeholder=\"<?php _e( 'Select Categories', 'bulk-delete' ); ?>\">\n-\t\t\t\t\t<option value=\"all\"><?php _e( 'All Categories', 'bulk-delete' ); ?></option>\n-\t\t<?php foreach ( $categories as $category ) { ?>\n-\t\t\t<option value=\"<?php echo $category->cat_ID; ?>\"><?php echo $category->cat_name, ' (', $category->count, ' ', __( 'Posts', 'bulk-delete' ), ')'; ?></option>\n-\t\t<?php } ?>\n+                <?php if( count($categories) > 50 ){?>\n+\t\t\t\t\t<select class=\"select2Ajax\" name=\"smbd_cats[]\" data-term=\"category\" multiple data-placeholder=\"<?php _e( 'Select Categories', 'bulk-delete' ); ?>\" style=\"width:300px\">","path":"include/posts/class-bulk-delete-posts.php","position":10,"original_position":10,"commit_id":"838afe5ee0ca3524d203bc8361abf4da98fffb90","original_commit_id":"838afe5ee0ca3524d203bc8361abf4da98fffb90","user":{"login":"sudar","id":103148,"avatar_url":"https://avatars1.githubusercontent.com/u/103148?v=4","gravatar_id":"","url":"https://api.github.com/users/sudar","html_url":"https://github.com/sudar","followers_url":"https://api.github.com/users/sudar/followers","following_url":"https://api.github.com/users/sudar/following{/other_user}","gists_url":"https://api.github.com/users/sudar/gists{/gist_id}","starred_url":"https://api.github.com/users/sudar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudar/subscriptions","organizations_url":"https://api.github.com/users/sudar/orgs","repos_url":"https://api.github.com/users/sudar/repos","events_url":"https://api.github.com/users/sudar/events{/privacy}","received_events_url":"https://api.github.com/users/sudar/received_events","type":"User","site_admin":false},"body":"The attribute `data-term` should be `data-taxonomy`. This is applicable for tags as well.","created_at":"2018-02-19T04:32:24Z","updated_at":"2018-02-19T04:32:36Z","html_url":"https://github.com/sudar/bulk-delete/pull/202#discussion_r168986408","pull_request_url":"https://api.github.com/repos/sudar/bulk-delete/pulls/202","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/sudar/bulk-delete/pulls/comments/168986408"},"html":{"href":"https://github.com/sudar/bulk-delete/pull/202#discussion_r168986408"},"pull_request":{"href":"https://api.github.com/repos/sudar/bulk-delete/pulls/202"}}},"pull_request":{"url":"https://api.github.com/repos/sudar/bulk-delete/pulls/202","id":169848611,"html_url":"https://github.com/sudar/bulk-delete/pull/202","diff_url":"https://github.com/sudar/bulk-delete/pull/202.diff","patch_url":"https://github.com/sudar/bulk-delete/pull/202.patch","issue_url":"https://api.github.com/repos/sudar/bulk-delete/issues/202","number":202,"state":"open","locked":false,"title":"Plugin page crashes if there are huge number of taxonomies","user":{"login":"rajanit2000","id":2988033,"avatar_url":"https://avatars3.githubusercontent.com/u/2988033?v=4","gravatar_id":"","url":"https://api.github.com/users/rajanit2000","html_url":"https://github.com/rajanit2000","followers_url":"https://api.github.com/users/rajanit2000/followers","following_url":"https://api.github.com/users/rajanit2000/following{/other_user}","gists_url":"https://api.github.com/users/rajanit2000/gists{/gist_id}","starred_url":"https://api.github.com/users/rajanit2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajanit2000/subscriptions","organizations_url":"https://api.github.com/users/rajanit2000/orgs","repos_url":"https://api.github.com/users/rajanit2000/repos","events_url":"https://api.github.com/users/rajanit2000/events{/privacy}","received_events_url":"https://api.github.com/users/rajanit2000/received_events","type":"User","site_admin":false},"body":"Fix #194","created_at":"2018-02-18T20:37:15Z","updated_at":"2018-02-19T04:32:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"613298f409730bedafc9541671dd99de6c73eaba","assignee":{"login":"rajanit2000","id":2988033,"avatar_url":"https://avatars3.githubusercontent.com/u/2988033?v=4","gravatar_id":"","url":"https://api.github.com/users/rajanit2000","html_url":"https://github.com/rajanit2000","followers_url":"https://api.github.com/users/rajanit2000/followers","following_url":"https://api.github.com/users/rajanit2000/following{/other_user}","gists_url":"https://api.github.com/users/rajanit2000/gists{/gist_id}","starred_url":"https://api.github.com/users/rajanit2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajanit2000/subscriptions","organizations_url":"https://api.github.com/users/rajanit2000/orgs","repos_url":"https://api.github.com/users/rajanit2000/repos","events_url":"https://api.github.com/users/rajanit2000/events{/privacy}","received_events_url":"https://api.github.com/users/rajanit2000/received_events","type":"User","site_admin":false},"assignees":[{"login":"rajanit2000","id":2988033,"avatar_url":"https://avatars3.githubusercontent.com/u/2988033?v=4","gravatar_id":"","url":"https://api.github.com/users/rajanit2000","html_url":"https://github.com/rajanit2000","followers_url":"https://api.github.com/users/rajanit2000/followers","following_url":"https://api.github.com/users/rajanit2000/following{/other_user}","gists_url":"https://api.github.com/users/rajanit2000/gists{/gist_id}","starred_url":"https://api.github.com/users/rajanit2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajanit2000/subscriptions","organizations_url":"https://api.github.com/users/rajanit2000/orgs","repos_url":"https://api.github.com/users/rajanit2000/repos","events_url":"https://api.github.com/users/rajanit2000/events{/privacy}","received_events_url":"https://api.github.com/users/rajanit2000/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":179381528,"url":"https://api.github.com/repos/sudar/bulk-delete/labels/in%20progress","name":"in progress","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/sudar/bulk-delete/pulls/202/commits","review_comments_url":"https://api.github.com/repos/sudar/bulk-delete/pulls/202/comments","review_comment_url":"https://api.github.com/repos/sudar/bulk-delete/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sudar/bulk-delete/issues/202/comments","statuses_url":"https://api.github.com/repos/sudar/bulk-delete/statuses/838afe5ee0ca3524d203bc8361abf4da98fffb90","head":{"label":"sudar:194-fix/huge_number_taxonamy_crash_issue","ref":"194-fix/huge_number_taxonamy_crash_issue","sha":"838afe5ee0ca3524d203bc8361abf4da98fffb90","user":{"login":"sudar","id":103148,"avatar_url":"https://avatars1.githubusercontent.com/u/103148?v=4","gravatar_id":"","url":"https://api.github.com/users/sudar","html_url":"https://github.com/sudar","followers_url":"https://api.github.com/users/sudar/followers","following_url":"https://api.github.com/users/sudar/following{/other_user}","gists_url":"https://api.github.com/users/sudar/gists{/gist_id}","starred_url":"https://api.github.com/users/sudar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudar/subscriptions","organizations_url":"https://api.github.com/users/sudar/orgs","repos_url":"https://api.github.com/users/sudar/repos","events_url":"https://api.github.com/users/sudar/events{/privacy}","received_events_url":"https://api.github.com/users/sudar/received_events","type":"User","site_admin":false},"repo":{"id":7251206,"name":"bulk-delete","full_name":"sudar/bulk-delete","owner":{"login":"sudar","id":103148,"avatar_url":"https://avatars1.githubusercontent.com/u/103148?v=4","gravatar_id":"","url":"https://api.github.com/users/sudar","html_url":"https://github.com/sudar","followers_url":"https://api.github.com/users/sudar/followers","following_url":"https://api.github.com/users/sudar/following{/other_user}","gists_url":"https://api.github.com/users/sudar/gists{/gist_id}","starred_url":"https://api.github.com/users/sudar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudar/subscriptions","organizations_url":"https://api.github.com/users/sudar/orgs","repos_url":"https://api.github.com/users/sudar/repos","events_url":"https://api.github.com/users/sudar/events{/privacy}","received_events_url":"https://api.github.com/users/sudar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sudar/bulk-delete","description":"Bulk Delete is a WordPress Plugin that allows you to delete posts, pages and users in bulk based on different conditions and filters.","fork":false,"url":"https://api.github.com/repos/sudar/bulk-delete","forks_url":"https://api.github.com/repos/sudar/bulk-delete/forks","keys_url":"https://api.github.com/repos/sudar/bulk-delete/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sudar/bulk-delete/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sudar/bulk-delete/teams","hooks_url":"https://api.github.com/repos/sudar/bulk-delete/hooks","issue_events_url":"https://api.github.com/repos/sudar/bulk-delete/issues/events{/number}","events_url":"https://api.github.com/repos/sudar/bulk-delete/events","assignees_url":"https://api.github.com/repos/sudar/bulk-delete/assignees{/user}","branches_url":"https://api.github.com/repos/sudar/bulk-delete/branches{/branch}","tags_url":"https://api.github.com/repos/sudar/bulk-delete/tags","blobs_url":"https://api.github.com/repos/sudar/bulk-delete/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sudar/bulk-delete/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sudar/bulk-delete/git/refs{/sha}","trees_url":"https://api.github.com/repos/sudar/bulk-delete/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sudar/bulk-delete/statuses/{sha}","languages_url":"https://api.github.com/repos/sudar/bulk-delete/languages","stargazers_url":"https://api.github.com/repos/sudar/bulk-delete/stargazers","contributors_url":"https://api.github.com/repos/sudar/bulk-delete/contributors","subscribers_url":"https://api.github.com/repos/sudar/bulk-delete/subscribers","subscription_url":"https://api.github.com/repos/sudar/bulk-delete/subscription","commits_url":"https://api.github.com/repos/sudar/bulk-delete/commits{/sha}","git_commits_url":"https://api.github.com/repos/sudar/bulk-delete/git/commits{/sha}","comments_url":"https://api.github.com/repos/sudar/bulk-delete/comments{/number}","issue_comment_url":"https://api.github.com/repos/sudar/bulk-delete/issues/comments{/number}","contents_url":"https://api.github.com/repos/sudar/bulk-delete/contents/{+path}","compare_url":"https://api.github.com/repos/sudar/bulk-delete/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sudar/bulk-delete/merges","archive_url":"https://api.github.com/repos/sudar/bulk-delete/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sudar/bulk-delete/downloads","issues_url":"https://api.github.com/repos/sudar/bulk-delete/issues{/number}","pulls_url":"https://api.github.com/repos/sudar/bulk-delete/pulls{/number}","milestones_url":"https://api.github.com/repos/sudar/bulk-delete/milestones{/number}","notifications_url":"https://api.github.com/repos/sudar/bulk-delete/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sudar/bulk-delete/labels{/name}","releases_url":"https://api.github.com/repos/sudar/bulk-delete/releases{/id}","deployments_url":"https://api.github.com/repos/sudar/bulk-delete/deployments","created_at":"2012-12-20T02:53:36Z","updated_at":"2018-01-29T12:24:15Z","pushed_at":"2018-02-18T20:37:15Z","git_url":"git://github.com/sudar/bulk-delete.git","ssh_url":"git@github.com:sudar/bulk-delete.git","clone_url":"https://github.com/sudar/bulk-delete.git","svn_url":"https://github.com/sudar/bulk-delete","homepage":"http://bulkwp.com","size":4345,"stargazers_count":12,"watchers_count":12,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":56,"license":null,"forks":2,"open_issues":56,"watchers":12,"default_branch":"dev/5.7.0"}},"base":{"label":"sudar:dev/5.7.0","ref":"dev/5.7.0","sha":"a8302c58f507484ca736e6c9c6ed37bdb39ff9ee","user":{"login":"sudar","id":103148,"avatar_url":"https://avatars1.githubusercontent.com/u/103148?v=4","gravatar_id":"","url":"https://api.github.com/users/sudar","html_url":"https://github.com/sudar","followers_url":"https://api.github.com/users/sudar/followers","following_url":"https://api.github.com/users/sudar/following{/other_user}","gists_url":"https://api.github.com/users/sudar/gists{/gist_id}","starred_url":"https://api.github.com/users/sudar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudar/subscriptions","organizations_url":"https://api.github.com/users/sudar/orgs","repos_url":"https://api.github.com/users/sudar/repos","events_url":"https://api.github.com/users/sudar/events{/privacy}","received_events_url":"https://api.github.com/users/sudar/received_events","type":"User","site_admin":false},"repo":{"id":7251206,"name":"bulk-delete","full_name":"sudar/bulk-delete","owner":{"login":"sudar","id":103148,"avatar_url":"https://avatars1.githubusercontent.com/u/103148?v=4","gravatar_id":"","url":"https://api.github.com/users/sudar","html_url":"https://github.com/sudar","followers_url":"https://api.github.com/users/sudar/followers","following_url":"https://api.github.com/users/sudar/following{/other_user}","gists_url":"https://api.github.com/users/sudar/gists{/gist_id}","starred_url":"https://api.github.com/users/sudar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudar/subscriptions","organizations_url":"https://api.github.com/users/sudar/orgs","repos_url":"https://api.github.com/users/sudar/repos","events_url":"https://api.github.com/users/sudar/events{/privacy}","received_events_url":"https://api.github.com/users/sudar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sudar/bulk-delete","description":"Bulk Delete is a WordPress Plugin that allows you to delete posts, pages and users in bulk based on different conditions and filters.","fork":false,"url":"https://api.github.com/repos/sudar/bulk-delete","forks_url":"https://api.github.com/repos/sudar/bulk-delete/forks","keys_url":"https://api.github.com/repos/sudar/bulk-delete/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sudar/bulk-delete/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sudar/bulk-delete/teams","hooks_url":"https://api.github.com/repos/sudar/bulk-delete/hooks","issue_events_url":"https://api.github.com/repos/sudar/bulk-delete/issues/events{/number}","events_url":"https://api.github.com/repos/sudar/bulk-delete/events","assignees_url":"https://api.github.com/repos/sudar/bulk-delete/assignees{/user}","branches_url":"https://api.github.com/repos/sudar/bulk-delete/branches{/branch}","tags_url":"https://api.github.com/repos/sudar/bulk-delete/tags","blobs_url":"https://api.github.com/repos/sudar/bulk-delete/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sudar/bulk-delete/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sudar/bulk-delete/git/refs{/sha}","trees_url":"https://api.github.com/repos/sudar/bulk-delete/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sudar/bulk-delete/statuses/{sha}","languages_url":"https://api.github.com/repos/sudar/bulk-delete/languages","stargazers_url":"https://api.github.com/repos/sudar/bulk-delete/stargazers","contributors_url":"https://api.github.com/repos/sudar/bulk-delete/contributors","subscribers_url":"https://api.github.com/repos/sudar/bulk-delete/subscribers","subscription_url":"https://api.github.com/repos/sudar/bulk-delete/subscription","commits_url":"https://api.github.com/repos/sudar/bulk-delete/commits{/sha}","git_commits_url":"https://api.github.com/repos/sudar/bulk-delete/git/commits{/sha}","comments_url":"https://api.github.com/repos/sudar/bulk-delete/comments{/number}","issue_comment_url":"https://api.github.com/repos/sudar/bulk-delete/issues/comments{/number}","contents_url":"https://api.github.com/repos/sudar/bulk-delete/contents/{+path}","compare_url":"https://api.github.com/repos/sudar/bulk-delete/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sudar/bulk-delete/merges","archive_url":"https://api.github.com/repos/sudar/bulk-delete/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sudar/bulk-delete/downloads","issues_url":"https://api.github.com/repos/sudar/bulk-delete/issues{/number}","pulls_url":"https://api.github.com/repos/sudar/bulk-delete/pulls{/number}","milestones_url":"https://api.github.com/repos/sudar/bulk-delete/milestones{/number}","notifications_url":"https://api.github.com/repos/sudar/bulk-delete/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sudar/bulk-delete/labels{/name}","releases_url":"https://api.github.com/repos/sudar/bulk-delete/releases{/id}","deployments_url":"https://api.github.com/repos/sudar/bulk-delete/deployments","created_at":"2012-12-20T02:53:36Z","updated_at":"2018-01-29T12:24:15Z","pushed_at":"2018-02-18T20:37:15Z","git_url":"git://github.com/sudar/bulk-delete.git","ssh_url":"git@github.com:sudar/bulk-delete.git","clone_url":"https://github.com/sudar/bulk-delete.git","svn_url":"https://github.com/sudar/bulk-delete","homepage":"http://bulkwp.com","size":4345,"stargazers_count":12,"watchers_count":12,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":56,"license":null,"forks":2,"open_issues":56,"watchers":12,"default_branch":"dev/5.7.0"}},"_links":{"self":{"href":"https://api.github.com/repos/sudar/bulk-delete/pulls/202"},"html":{"href":"https://github.com/sudar/bulk-delete/pull/202"},"issue":{"href":"https://api.github.com/repos/sudar/bulk-delete/issues/202"},"comments":{"href":"https://api.github.com/repos/sudar/bulk-delete/issues/202/comments"},"review_comments":{"href":"https://api.github.com/repos/sudar/bulk-delete/pulls/202/comments"},"review_comment":{"href":"https://api.github.com/repos/sudar/bulk-delete/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sudar/bulk-delete/pulls/202/commits"},"statuses":{"href":"https://api.github.com/repos/sudar/bulk-delete/statuses/838afe5ee0ca3524d203bc8361abf4da98fffb90"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"sudar"}}