{"action":"created","comment":{"url":"https://api.github.com/repos/nprds/nprapi-wordpress/pulls/comments/68171624","id":68171624,"diff_hunk":"@@ -18,13 +18,14 @@ public static function nprstory_cron_pull() {\n \t\t//because this is run on cron, and may be fired off by an non-admin, we need to load a bunch of stuff\n \t\trequire_once (ABSPATH . '/wp-admin/includes/file.php');\n \t\trequire_once (ABSPATH . '/wp-admin/includes/media.php');\n-\t\trequire_once (ABSPATH . '/wp-admin/includes/admin.php');\n-\t\trequire_once (ABSPATH . '/wp-includes/class-wp-error.php');","path":"get_stories.php","position":null,"original_position":5,"commit_id":"cf2dfa39c1f118d0ca0c836d7967e09baec63bd6","original_commit_id":"cf2dfa39c1f118d0ca0c836d7967e09baec63bd6","user":{"login":"benlk","id":1754187,"avatar_url":"https://avatars.githubusercontent.com/u/1754187?v=3","gravatar_id":"","url":"https://api.github.com/users/benlk","html_url":"https://github.com/benlk","followers_url":"https://api.github.com/users/benlk/followers","following_url":"https://api.github.com/users/benlk/following{/other_user}","gists_url":"https://api.github.com/users/benlk/gists{/gist_id}","starred_url":"https://api.github.com/users/benlk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benlk/subscriptions","organizations_url":"https://api.github.com/users/benlk/orgs","repos_url":"https://api.github.com/users/benlk/repos","events_url":"https://api.github.com/users/benlk/events{/privacy}","received_events_url":"https://api.github.com/users/benlk/received_events","type":"User","site_admin":false},"body":"`/wp-cron.php` [loads](https://core.trac.wordpress.org/browser/tags/4.5.3/src/wp-cron.php#L26) `/wp-load.php`\r\n`/wp-load.php` either [loads `/wp-settings.php` directly](https://core.trac.wordpress.org/browser/tags/4.5.3/src/wp-load.php#L39) or loads `wp-config.php`which loads `/wp-settings.php` - in either case  `/wp-settings.php` is loaded\r\n `/wp-settings.php` [loads](https://core.trac.wordpress.org/browser/tags/4.5.3/src/wp-settings.php#L83) `WPINC . '/class-wp-error.php'`\r\n\r\nThus we don't need to load `/wp-includes/class-wp-error.php`\r\n\r\n`/wp-admin/includes/admin.php` was not required in testing of this section.\r\n\r\n`/wp-admin/includes/file.php` is required to access the API.\r\n\r\n`/wp-admin/includes/media.php` is required for image handling.","created_at":"2016-06-23T03:40:46Z","updated_at":"2016-06-23T03:40:46Z","html_url":"https://github.com/nprds/nprapi-wordpress/pull/19#discussion_r68171624","pull_request_url":"https://api.github.com/repos/nprds/nprapi-wordpress/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/nprds/nprapi-wordpress/pulls/comments/68171624"},"html":{"href":"https://github.com/nprds/nprapi-wordpress/pull/19#discussion_r68171624"},"pull_request":{"href":"https://api.github.com/repos/nprds/nprapi-wordpress/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/nprds/nprapi-wordpress/pulls/19","id":74151488,"html_url":"https://github.com/nprds/nprapi-wordpress/pull/19","diff_url":"https://github.com/nprds/nprapi-wordpress/pull/19.diff","patch_url":"https://github.com/nprds/nprapi-wordpress/pull/19.patch","issue_url":"https://api.github.com/repos/nprds/nprapi-wordpress/issues/19","number":19,"state":"open","locked":false,"title":"initial merge of INN work","user":{"login":"aschweigert","id":490703,"avatar_url":"https://avatars.githubusercontent.com/u/490703?v=3","gravatar_id":"","url":"https://api.github.com/users/aschweigert","html_url":"https://github.com/aschweigert","followers_url":"https://api.github.com/users/aschweigert/followers","following_url":"https://api.github.com/users/aschweigert/following{/other_user}","gists_url":"https://api.github.com/users/aschweigert/gists{/gist_id}","starred_url":"https://api.github.com/users/aschweigert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aschweigert/subscriptions","organizations_url":"https://api.github.com/users/aschweigert/orgs","repos_url":"https://api.github.com/users/aschweigert/repos","events_url":"https://api.github.com/users/aschweigert/events{/privacy}","received_events_url":"https://api.github.com/users/aschweigert/received_events","type":"User","site_admin":false},"body":"this is still minus the tests for API-dependent functions","created_at":"2016-06-16T21:01:13Z","updated_at":"2016-06-23T03:40:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f9427b790e7669bf4d8dcd5be312f59a57859257","assignee":{"login":"mike-douglas","id":1015725,"avatar_url":"https://avatars.githubusercontent.com/u/1015725?v=3","gravatar_id":"","url":"https://api.github.com/users/mike-douglas","html_url":"https://github.com/mike-douglas","followers_url":"https://api.github.com/users/mike-douglas/followers","following_url":"https://api.github.com/users/mike-douglas/following{/other_user}","gists_url":"https://api.github.com/users/mike-douglas/gists{/gist_id}","starred_url":"https://api.github.com/users/mike-douglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mike-douglas/subscriptions","organizations_url":"https://api.github.com/users/mike-douglas/orgs","repos_url":"https://api.github.com/users/mike-douglas/repos","events_url":"https://api.github.com/users/mike-douglas/events{/privacy}","received_events_url":"https://api.github.com/users/mike-douglas/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/nprds/nprapi-wordpress/pulls/19/commits","review_comments_url":"https://api.github.com/repos/nprds/nprapi-wordpress/pulls/19/comments","review_comment_url":"https://api.github.com/repos/nprds/nprapi-wordpress/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nprds/nprapi-wordpress/issues/19/comments","statuses_url":"https://api.github.com/repos/nprds/nprapi-wordpress/statuses/cf2dfa39c1f118d0ca0c836d7967e09baec63bd6","head":{"label":"INN:master","ref":"master","sha":"cf2dfa39c1f118d0ca0c836d7967e09baec63bd6","user":{"login":"INN","id":1553533,"avatar_url":"https://avatars.githubusercontent.com/u/1553533?v=3","gravatar_id":"","url":"https://api.github.com/users/INN","html_url":"https://github.com/INN","followers_url":"https://api.github.com/users/INN/followers","following_url":"https://api.github.com/users/INN/following{/other_user}","gists_url":"https://api.github.com/users/INN/gists{/gist_id}","starred_url":"https://api.github.com/users/INN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/INN/subscriptions","organizations_url":"https://api.github.com/users/INN/orgs","repos_url":"https://api.github.com/users/INN/repos","events_url":"https://api.github.com/users/INN/events{/privacy}","received_events_url":"https://api.github.com/users/INN/received_events","type":"Organization","site_admin":false},"repo":{"id":60124405,"name":"WP-DS-NPR-API","full_name":"INN/WP-DS-NPR-API","owner":{"login":"INN","id":1553533,"avatar_url":"https://avatars.githubusercontent.com/u/1553533?v=3","gravatar_id":"","url":"https://api.github.com/users/INN","html_url":"https://github.com/INN","followers_url":"https://api.github.com/users/INN/followers","following_url":"https://api.github.com/users/INN/following{/other_user}","gists_url":"https://api.github.com/users/INN/gists{/gist_id}","starred_url":"https://api.github.com/users/INN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/INN/subscriptions","organizations_url":"https://api.github.com/users/INN/orgs","repos_url":"https://api.github.com/users/INN/repos","events_url":"https://api.github.com/users/INN/events{/privacy}","received_events_url":"https://api.github.com/users/INN/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/INN/WP-DS-NPR-API","description":"","fork":true,"url":"https://api.github.com/repos/INN/WP-DS-NPR-API","forks_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/forks","keys_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/teams","hooks_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/hooks","issue_events_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/issues/events{/number}","events_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/events","assignees_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/assignees{/user}","branches_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/branches{/branch}","tags_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/tags","blobs_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/git/refs{/sha}","trees_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/statuses/{sha}","languages_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/languages","stargazers_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/stargazers","contributors_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/contributors","subscribers_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/subscribers","subscription_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/subscription","commits_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/commits{/sha}","git_commits_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/git/commits{/sha}","comments_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/comments{/number}","issue_comment_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/issues/comments{/number}","contents_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/contents/{+path}","compare_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/merges","archive_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/downloads","issues_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/issues{/number}","pulls_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/pulls{/number}","milestones_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/milestones{/number}","notifications_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/labels{/name}","releases_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/releases{/id}","deployments_url":"https://api.github.com/repos/INN/WP-DS-NPR-API/deployments","created_at":"2016-05-31T21:22:56Z","updated_at":"2016-06-07T01:37:06Z","pushed_at":"2016-06-23T03:30:06Z","git_url":"git://github.com/INN/WP-DS-NPR-API.git","ssh_url":"git@github.com:INN/WP-DS-NPR-API.git","clone_url":"https://github.com/INN/WP-DS-NPR-API.git","svn_url":"https://github.com/INN/WP-DS-NPR-API","homepage":null,"size":8343,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"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":"nprds:master","ref":"master","sha":"0b6b6caa5241fcda40fc191fe02137623d1cc83f","user":{"login":"nprds","id":3236417,"avatar_url":"https://avatars.githubusercontent.com/u/3236417?v=3","gravatar_id":"","url":"https://api.github.com/users/nprds","html_url":"https://github.com/nprds","followers_url":"https://api.github.com/users/nprds/followers","following_url":"https://api.github.com/users/nprds/following{/other_user}","gists_url":"https://api.github.com/users/nprds/gists{/gist_id}","starred_url":"https://api.github.com/users/nprds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nprds/subscriptions","organizations_url":"https://api.github.com/users/nprds/orgs","repos_url":"https://api.github.com/users/nprds/repos","events_url":"https://api.github.com/users/nprds/events{/privacy}","received_events_url":"https://api.github.com/users/nprds/received_events","type":"Organization","site_admin":false},"repo":{"id":4704477,"name":"nprapi-wordpress","full_name":"nprds/nprapi-wordpress","owner":{"login":"nprds","id":3236417,"avatar_url":"https://avatars.githubusercontent.com/u/3236417?v=3","gravatar_id":"","url":"https://api.github.com/users/nprds","html_url":"https://github.com/nprds","followers_url":"https://api.github.com/users/nprds/followers","following_url":"https://api.github.com/users/nprds/following{/other_user}","gists_url":"https://api.github.com/users/nprds/gists{/gist_id}","starred_url":"https://api.github.com/users/nprds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nprds/subscriptions","organizations_url":"https://api.github.com/users/nprds/orgs","repos_url":"https://api.github.com/users/nprds/repos","events_url":"https://api.github.com/users/nprds/events{/privacy}","received_events_url":"https://api.github.com/users/nprds/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nprds/nprapi-wordpress","description":"Access the NPR API from within Wordpress","fork":false,"url":"https://api.github.com/repos/nprds/nprapi-wordpress","forks_url":"https://api.github.com/repos/nprds/nprapi-wordpress/forks","keys_url":"https://api.github.com/repos/nprds/nprapi-wordpress/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nprds/nprapi-wordpress/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nprds/nprapi-wordpress/teams","hooks_url":"https://api.github.com/repos/nprds/nprapi-wordpress/hooks","issue_events_url":"https://api.github.com/repos/nprds/nprapi-wordpress/issues/events{/number}","events_url":"https://api.github.com/repos/nprds/nprapi-wordpress/events","assignees_url":"https://api.github.com/repos/nprds/nprapi-wordpress/assignees{/user}","branches_url":"https://api.github.com/repos/nprds/nprapi-wordpress/branches{/branch}","tags_url":"https://api.github.com/repos/nprds/nprapi-wordpress/tags","blobs_url":"https://api.github.com/repos/nprds/nprapi-wordpress/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nprds/nprapi-wordpress/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nprds/nprapi-wordpress/git/refs{/sha}","trees_url":"https://api.github.com/repos/nprds/nprapi-wordpress/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nprds/nprapi-wordpress/statuses/{sha}","languages_url":"https://api.github.com/repos/nprds/nprapi-wordpress/languages","stargazers_url":"https://api.github.com/repos/nprds/nprapi-wordpress/stargazers","contributors_url":"https://api.github.com/repos/nprds/nprapi-wordpress/contributors","subscribers_url":"https://api.github.com/repos/nprds/nprapi-wordpress/subscribers","subscription_url":"https://api.github.com/repos/nprds/nprapi-wordpress/subscription","commits_url":"https://api.github.com/repos/nprds/nprapi-wordpress/commits{/sha}","git_commits_url":"https://api.github.com/repos/nprds/nprapi-wordpress/git/commits{/sha}","comments_url":"https://api.github.com/repos/nprds/nprapi-wordpress/comments{/number}","issue_comment_url":"https://api.github.com/repos/nprds/nprapi-wordpress/issues/comments{/number}","contents_url":"https://api.github.com/repos/nprds/nprapi-wordpress/contents/{+path}","compare_url":"https://api.github.com/repos/nprds/nprapi-wordpress/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nprds/nprapi-wordpress/merges","archive_url":"https://api.github.com/repos/nprds/nprapi-wordpress/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nprds/nprapi-wordpress/downloads","issues_url":"https://api.github.com/repos/nprds/nprapi-wordpress/issues{/number}","pulls_url":"https://api.github.com/repos/nprds/nprapi-wordpress/pulls{/number}","milestones_url":"https://api.github.com/repos/nprds/nprapi-wordpress/milestones{/number}","notifications_url":"https://api.github.com/repos/nprds/nprapi-wordpress/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nprds/nprapi-wordpress/labels{/name}","releases_url":"https://api.github.com/repos/nprds/nprapi-wordpress/releases{/id}","deployments_url":"https://api.github.com/repos/nprds/nprapi-wordpress/deployments","created_at":"2012-06-18T18:19:45Z","updated_at":"2016-06-10T14:01:38Z","pushed_at":"2016-06-23T03:30:07Z","git_url":"git://github.com/nprds/nprapi-wordpress.git","ssh_url":"git@github.com:nprds/nprapi-wordpress.git","clone_url":"https://github.com/nprds/nprapi-wordpress.git","svn_url":"https://github.com/nprds/nprapi-wordpress","homepage":"","size":4476,"stargazers_count":8,"watchers_count":8,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":14,"forks":11,"open_issues":14,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nprds/nprapi-wordpress/pulls/19"},"html":{"href":"https://github.com/nprds/nprapi-wordpress/pull/19"},"issue":{"href":"https://api.github.com/repos/nprds/nprapi-wordpress/issues/19"},"comments":{"href":"https://api.github.com/repos/nprds/nprapi-wordpress/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/nprds/nprapi-wordpress/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/nprds/nprapi-wordpress/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nprds/nprapi-wordpress/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/nprds/nprapi-wordpress/statuses/cf2dfa39c1f118d0ca0c836d7967e09baec63bd6"}}}}
{"actor":{"display_login":"benlk"}}