{"action":"created","comment":{"url":"https://api.github.com/repos/woothemes/sensei/pulls/comments/38312605","id":38312605,"diff_hunk":"@@ -1405,4 +1409,41 @@ public function limit_teacher_edit_screen_post_types( $wp_query ) {\n \n     } // end limit_teacher_edit_screen_post_types()\n \n+\n+    /**\n+     * Sensei_Teacher::teacher_login_redirect\n+     *\n+     * Redirect teachers to /wp-admin/ after login\n+     *\n+     * @since 1.8.7\n+     * @access public\n+     * @param string $user_login\n+     * @param object $user\n+     * @return void\n+     */\n+\n+    public function teacher_login_redirect( $user_login, $user  ) {\n+\n+        var_dump($_POST['redirect']);","path":"classes/class-sensei-teacher.php","position":30,"original_position":30,"commit_id":"db43b015f360297f0e0c29ad97730334b7d0167a","original_commit_id":"db43b015f360297f0e0c29ad97730334b7d0167a","user":{"login":"dwainm","id":1713474,"avatar_url":"https://avatars.githubusercontent.com/u/1713474?v=3","gravatar_id":"","url":"https://api.github.com/users/dwainm","html_url":"https://github.com/dwainm","followers_url":"https://api.github.com/users/dwainm/followers","following_url":"https://api.github.com/users/dwainm/following{/other_user}","gists_url":"https://api.github.com/users/dwainm/gists{/gist_id}","starred_url":"https://api.github.com/users/dwainm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwainm/subscriptions","organizations_url":"https://api.github.com/users/dwainm/orgs","repos_url":"https://api.github.com/users/dwainm/repos","events_url":"https://api.github.com/users/dwainm/events{/privacy}","received_events_url":"https://api.github.com/users/dwainm/received_events","type":"User","site_admin":false},"body":"@mahangu I'm sure you forgot to remove this var_dump :)","created_at":"2015-08-31T13:45:21Z","updated_at":"2015-08-31T13:45:21Z","html_url":"https://github.com/woothemes/sensei/pull/1049#discussion_r38312605","pull_request_url":"https://api.github.com/repos/woothemes/sensei/pulls/1049","_links":{"self":{"href":"https://api.github.com/repos/woothemes/sensei/pulls/comments/38312605"},"html":{"href":"https://github.com/woothemes/sensei/pull/1049#discussion_r38312605"},"pull_request":{"href":"https://api.github.com/repos/woothemes/sensei/pulls/1049"}}},"pull_request":{"url":"https://api.github.com/repos/woothemes/sensei/pulls/1049","id":43741218,"html_url":"https://github.com/woothemes/sensei/pull/1049","diff_url":"https://github.com/woothemes/sensei/pull/1049.diff","patch_url":"https://github.com/woothemes/sensei/pull/1049.patch","issue_url":"https://api.github.com/repos/woothemes/sensei/issues/1049","number":1049,"state":"open","locked":false,"title":"Redirect teachers to admin_url() on login","user":{"login":"mahangu","id":10125810,"avatar_url":"https://avatars.githubusercontent.com/u/10125810?v=3","gravatar_id":"","url":"https://api.github.com/users/mahangu","html_url":"https://github.com/mahangu","followers_url":"https://api.github.com/users/mahangu/followers","following_url":"https://api.github.com/users/mahangu/following{/other_user}","gists_url":"https://api.github.com/users/mahangu/gists{/gist_id}","starred_url":"https://api.github.com/users/mahangu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahangu/subscriptions","organizations_url":"https://api.github.com/users/mahangu/orgs","repos_url":"https://api.github.com/users/mahangu/repos","events_url":"https://api.github.com/users/mahangu/events{/privacy}","received_events_url":"https://api.github.com/users/mahangu/received_events","type":"User","site_admin":false},"body":"Fixes #972. Not sure if checking for the `edit_courses` cap is the cleanest way to do this, but it seemed best to tie this behaviour to the cap iself, rather than the role, as there could be custom roles that use the `edit_courses` cap as well.","created_at":"2015-08-31T08:12:34Z","updated_at":"2015-08-31T13:45:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5d69227e1fdb41b2c454f06de7b7a2a089bac42","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/woothemes/sensei/pulls/1049/commits","review_comments_url":"https://api.github.com/repos/woothemes/sensei/pulls/1049/comments","review_comment_url":"https://api.github.com/repos/woothemes/sensei/pulls/comments{/number}","comments_url":"https://api.github.com/repos/woothemes/sensei/issues/1049/comments","statuses_url":"https://api.github.com/repos/woothemes/sensei/statuses/db43b015f360297f0e0c29ad97730334b7d0167a","head":{"label":"mahangu:p-972","ref":"p-972","sha":"db43b015f360297f0e0c29ad97730334b7d0167a","user":{"login":"mahangu","id":10125810,"avatar_url":"https://avatars.githubusercontent.com/u/10125810?v=3","gravatar_id":"","url":"https://api.github.com/users/mahangu","html_url":"https://github.com/mahangu","followers_url":"https://api.github.com/users/mahangu/followers","following_url":"https://api.github.com/users/mahangu/following{/other_user}","gists_url":"https://api.github.com/users/mahangu/gists{/gist_id}","starred_url":"https://api.github.com/users/mahangu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahangu/subscriptions","organizations_url":"https://api.github.com/users/mahangu/orgs","repos_url":"https://api.github.com/users/mahangu/repos","events_url":"https://api.github.com/users/mahangu/events{/privacy}","received_events_url":"https://api.github.com/users/mahangu/received_events","type":"User","site_admin":false},"repo":{"id":39515139,"name":"sensei","full_name":"mahangu/sensei","owner":{"login":"mahangu","id":10125810,"avatar_url":"https://avatars.githubusercontent.com/u/10125810?v=3","gravatar_id":"","url":"https://api.github.com/users/mahangu","html_url":"https://github.com/mahangu","followers_url":"https://api.github.com/users/mahangu/followers","following_url":"https://api.github.com/users/mahangu/following{/other_user}","gists_url":"https://api.github.com/users/mahangu/gists{/gist_id}","starred_url":"https://api.github.com/users/mahangu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahangu/subscriptions","organizations_url":"https://api.github.com/users/mahangu/orgs","repos_url":"https://api.github.com/users/mahangu/repos","events_url":"https://api.github.com/users/mahangu/events{/privacy}","received_events_url":"https://api.github.com/users/mahangu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mahangu/sensei","description":"The WooThemes Sensei plugin.","fork":true,"url":"https://api.github.com/repos/mahangu/sensei","forks_url":"https://api.github.com/repos/mahangu/sensei/forks","keys_url":"https://api.github.com/repos/mahangu/sensei/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mahangu/sensei/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mahangu/sensei/teams","hooks_url":"https://api.github.com/repos/mahangu/sensei/hooks","issue_events_url":"https://api.github.com/repos/mahangu/sensei/issues/events{/number}","events_url":"https://api.github.com/repos/mahangu/sensei/events","assignees_url":"https://api.github.com/repos/mahangu/sensei/assignees{/user}","branches_url":"https://api.github.com/repos/mahangu/sensei/branches{/branch}","tags_url":"https://api.github.com/repos/mahangu/sensei/tags","blobs_url":"https://api.github.com/repos/mahangu/sensei/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mahangu/sensei/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mahangu/sensei/git/refs{/sha}","trees_url":"https://api.github.com/repos/mahangu/sensei/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mahangu/sensei/statuses/{sha}","languages_url":"https://api.github.com/repos/mahangu/sensei/languages","stargazers_url":"https://api.github.com/repos/mahangu/sensei/stargazers","contributors_url":"https://api.github.com/repos/mahangu/sensei/contributors","subscribers_url":"https://api.github.com/repos/mahangu/sensei/subscribers","subscription_url":"https://api.github.com/repos/mahangu/sensei/subscription","commits_url":"https://api.github.com/repos/mahangu/sensei/commits{/sha}","git_commits_url":"https://api.github.com/repos/mahangu/sensei/git/commits{/sha}","comments_url":"https://api.github.com/repos/mahangu/sensei/comments{/number}","issue_comment_url":"https://api.github.com/repos/mahangu/sensei/issues/comments{/number}","contents_url":"https://api.github.com/repos/mahangu/sensei/contents/{+path}","compare_url":"https://api.github.com/repos/mahangu/sensei/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mahangu/sensei/merges","archive_url":"https://api.github.com/repos/mahangu/sensei/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mahangu/sensei/downloads","issues_url":"https://api.github.com/repos/mahangu/sensei/issues{/number}","pulls_url":"https://api.github.com/repos/mahangu/sensei/pulls{/number}","milestones_url":"https://api.github.com/repos/mahangu/sensei/milestones{/number}","notifications_url":"https://api.github.com/repos/mahangu/sensei/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mahangu/sensei/labels{/name}","releases_url":"https://api.github.com/repos/mahangu/sensei/releases{/id}","created_at":"2015-07-22T15:49:40Z","updated_at":"2015-07-22T15:49:41Z","pushed_at":"2015-08-31T09:21:50Z","git_url":"git://github.com/mahangu/sensei.git","ssh_url":"git@github.com:mahangu/sensei.git","clone_url":"https://github.com/mahangu/sensei.git","svn_url":"https://github.com/mahangu/sensei","homepage":null,"size":11432,"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":"woothemes:release-1-8-7","ref":"release-1-8-7","sha":"b1f6ea1563ca6351f594f580ffef09f8e9d620c7","user":{"login":"woothemes","id":473596,"avatar_url":"https://avatars.githubusercontent.com/u/473596?v=3","gravatar_id":"","url":"https://api.github.com/users/woothemes","html_url":"https://github.com/woothemes","followers_url":"https://api.github.com/users/woothemes/followers","following_url":"https://api.github.com/users/woothemes/following{/other_user}","gists_url":"https://api.github.com/users/woothemes/gists{/gist_id}","starred_url":"https://api.github.com/users/woothemes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woothemes/subscriptions","organizations_url":"https://api.github.com/users/woothemes/orgs","repos_url":"https://api.github.com/users/woothemes/repos","events_url":"https://api.github.com/users/woothemes/events{/privacy}","received_events_url":"https://api.github.com/users/woothemes/received_events","type":"Organization","site_admin":false},"repo":{"id":7537577,"name":"sensei","full_name":"woothemes/sensei","owner":{"login":"woothemes","id":473596,"avatar_url":"https://avatars.githubusercontent.com/u/473596?v=3","gravatar_id":"","url":"https://api.github.com/users/woothemes","html_url":"https://github.com/woothemes","followers_url":"https://api.github.com/users/woothemes/followers","following_url":"https://api.github.com/users/woothemes/following{/other_user}","gists_url":"https://api.github.com/users/woothemes/gists{/gist_id}","starred_url":"https://api.github.com/users/woothemes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woothemes/subscriptions","organizations_url":"https://api.github.com/users/woothemes/orgs","repos_url":"https://api.github.com/users/woothemes/repos","events_url":"https://api.github.com/users/woothemes/events{/privacy}","received_events_url":"https://api.github.com/users/woothemes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/woothemes/sensei","description":"The WooThemes Sensei plugin.","fork":false,"url":"https://api.github.com/repos/woothemes/sensei","forks_url":"https://api.github.com/repos/woothemes/sensei/forks","keys_url":"https://api.github.com/repos/woothemes/sensei/keys{/key_id}","collaborators_url":"https://api.github.com/repos/woothemes/sensei/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/woothemes/sensei/teams","hooks_url":"https://api.github.com/repos/woothemes/sensei/hooks","issue_events_url":"https://api.github.com/repos/woothemes/sensei/issues/events{/number}","events_url":"https://api.github.com/repos/woothemes/sensei/events","assignees_url":"https://api.github.com/repos/woothemes/sensei/assignees{/user}","branches_url":"https://api.github.com/repos/woothemes/sensei/branches{/branch}","tags_url":"https://api.github.com/repos/woothemes/sensei/tags","blobs_url":"https://api.github.com/repos/woothemes/sensei/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/woothemes/sensei/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/woothemes/sensei/git/refs{/sha}","trees_url":"https://api.github.com/repos/woothemes/sensei/git/trees{/sha}","statuses_url":"https://api.github.com/repos/woothemes/sensei/statuses/{sha}","languages_url":"https://api.github.com/repos/woothemes/sensei/languages","stargazers_url":"https://api.github.com/repos/woothemes/sensei/stargazers","contributors_url":"https://api.github.com/repos/woothemes/sensei/contributors","subscribers_url":"https://api.github.com/repos/woothemes/sensei/subscribers","subscription_url":"https://api.github.com/repos/woothemes/sensei/subscription","commits_url":"https://api.github.com/repos/woothemes/sensei/commits{/sha}","git_commits_url":"https://api.github.com/repos/woothemes/sensei/git/commits{/sha}","comments_url":"https://api.github.com/repos/woothemes/sensei/comments{/number}","issue_comment_url":"https://api.github.com/repos/woothemes/sensei/issues/comments{/number}","contents_url":"https://api.github.com/repos/woothemes/sensei/contents/{+path}","compare_url":"https://api.github.com/repos/woothemes/sensei/compare/{base}...{head}","merges_url":"https://api.github.com/repos/woothemes/sensei/merges","archive_url":"https://api.github.com/repos/woothemes/sensei/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/woothemes/sensei/downloads","issues_url":"https://api.github.com/repos/woothemes/sensei/issues{/number}","pulls_url":"https://api.github.com/repos/woothemes/sensei/pulls{/number}","milestones_url":"https://api.github.com/repos/woothemes/sensei/milestones{/number}","notifications_url":"https://api.github.com/repos/woothemes/sensei/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/woothemes/sensei/labels{/name}","releases_url":"https://api.github.com/repos/woothemes/sensei/releases{/id}","created_at":"2013-01-10T08:52:41Z","updated_at":"2015-08-27T20:01:11Z","pushed_at":"2015-08-31T09:21:50Z","git_url":"git://github.com/woothemes/sensei.git","ssh_url":"git@github.com:woothemes/sensei.git","clone_url":"https://github.com/woothemes/sensei.git","svn_url":"https://github.com/woothemes/sensei","homepage":null,"size":14806,"stargazers_count":45,"watchers_count":45,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":101,"forks":16,"open_issues":101,"watchers":45,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/woothemes/sensei/pulls/1049"},"html":{"href":"https://github.com/woothemes/sensei/pull/1049"},"issue":{"href":"https://api.github.com/repos/woothemes/sensei/issues/1049"},"comments":{"href":"https://api.github.com/repos/woothemes/sensei/issues/1049/comments"},"review_comments":{"href":"https://api.github.com/repos/woothemes/sensei/pulls/1049/comments"},"review_comment":{"href":"https://api.github.com/repos/woothemes/sensei/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/woothemes/sensei/pulls/1049/commits"},"statuses":{"href":"https://api.github.com/repos/woothemes/sensei/statuses/db43b015f360297f0e0c29ad97730334b7d0167a"}}}}