{"action":"created","comment":{"url":"https://api.github.com/repos/deliciousbrains/GlotPress/pulls/comments/47451089","id":47451089,"diff_hunk":"@@ -35,6 +35,35 @@\n define( 'GP_PLUGIN_FILE', __FILE__ );\n define( 'GP_PATH', dirname( __FILE__ ) . '/' );\n define( 'GP_INC', 'gp-includes/' );\n+define( 'GP_WP_REQUIRED_VERSION', '4.4' );\n+\n+// This adds a row after GlotPress in the plugin page IF an incompatible version of WordPress is running.\n+function gp_admin_notices() {\n+\tglobal $wp_version;\n+\t\n+\t$screen = get_current_screen();\n+\t\n+\tif( 'plugins' == $screen->id ) {","path":"glotpress.php","position":null,"original_position":12,"commit_id":"b2a79a9a73153c980392536e95dc6f214edea186","original_commit_id":"4e1f510c6e78f3d5c40ac61199ba51ceb1934bf1","user":{"login":"toolstack","id":9053749,"avatar_url":"https://avatars.githubusercontent.com/u/9053749?v=3","gravatar_id":"","url":"https://api.github.com/users/toolstack","html_url":"https://github.com/toolstack","followers_url":"https://api.github.com/users/toolstack/followers","following_url":"https://api.github.com/users/toolstack/following{/other_user}","gists_url":"https://api.github.com/users/toolstack/gists{/gist_id}","starred_url":"https://api.github.com/users/toolstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toolstack/subscriptions","organizations_url":"https://api.github.com/users/toolstack/orgs","repos_url":"https://api.github.com/users/toolstack/repos","events_url":"https://api.github.com/users/toolstack/events{/privacy}","received_events_url":"https://api.github.com/users/toolstack/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2015-12-13T22:01:42Z","updated_at":"2015-12-13T22:01:42Z","html_url":"https://github.com/deliciousbrains/GlotPress/pull/83#discussion_r47451089","pull_request_url":"https://api.github.com/repos/deliciousbrains/GlotPress/pulls/83","_links":{"self":{"href":"https://api.github.com/repos/deliciousbrains/GlotPress/pulls/comments/47451089"},"html":{"href":"https://github.com/deliciousbrains/GlotPress/pull/83#discussion_r47451089"},"pull_request":{"href":"https://api.github.com/repos/deliciousbrains/GlotPress/pulls/83"}}},"pull_request":{"url":"https://api.github.com/repos/deliciousbrains/GlotPress/pulls/83","id":48070290,"html_url":"https://github.com/deliciousbrains/GlotPress/pull/83","diff_url":"https://github.com/deliciousbrains/GlotPress/pull/83.diff","patch_url":"https://github.com/deliciousbrains/GlotPress/pull/83.patch","issue_url":"https://api.github.com/repos/deliciousbrains/GlotPress/issues/83","number":83,"state":"open","locked":false,"title":"Add WordPress version check and warning if not a supported version.","user":{"login":"toolstack","id":9053749,"avatar_url":"https://avatars.githubusercontent.com/u/9053749?v=3","gravatar_id":"","url":"https://api.github.com/users/toolstack","html_url":"https://github.com/toolstack","followers_url":"https://api.github.com/users/toolstack/followers","following_url":"https://api.github.com/users/toolstack/following{/other_user}","gists_url":"https://api.github.com/users/toolstack/gists{/gist_id}","starred_url":"https://api.github.com/users/toolstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toolstack/subscriptions","organizations_url":"https://api.github.com/users/toolstack/orgs","repos_url":"https://api.github.com/users/toolstack/repos","events_url":"https://api.github.com/users/toolstack/events{/privacy}","received_events_url":"https://api.github.com/users/toolstack/received_events","type":"User","site_admin":false},"body":"If not on a supported version, don't run the router.\r\n\r\nResolves #52.\r\n\r\nNote: This should not be committed until after WordPress 4.4 is released as it does not check for nightly build numbers.","created_at":"2015-10-19T13:20:02Z","updated_at":"2015-12-13T22:01:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"83565cd67fd9e8b15dfd4d50eb9c62ba39b2cdae","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/deliciousbrains/GlotPress/pulls/83/commits","review_comments_url":"https://api.github.com/repos/deliciousbrains/GlotPress/pulls/83/comments","review_comment_url":"https://api.github.com/repos/deliciousbrains/GlotPress/pulls/comments{/number}","comments_url":"https://api.github.com/repos/deliciousbrains/GlotPress/issues/83/comments","statuses_url":"https://api.github.com/repos/deliciousbrains/GlotPress/statuses/b2a79a9a73153c980392536e95dc6f214edea186","head":{"label":"deliciousbrains:52-wp-version-check","ref":"52-wp-version-check","sha":"b2a79a9a73153c980392536e95dc6f214edea186","user":{"login":"deliciousbrains","id":3844035,"avatar_url":"https://avatars.githubusercontent.com/u/3844035?v=3","gravatar_id":"","url":"https://api.github.com/users/deliciousbrains","html_url":"https://github.com/deliciousbrains","followers_url":"https://api.github.com/users/deliciousbrains/followers","following_url":"https://api.github.com/users/deliciousbrains/following{/other_user}","gists_url":"https://api.github.com/users/deliciousbrains/gists{/gist_id}","starred_url":"https://api.github.com/users/deliciousbrains/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deliciousbrains/subscriptions","organizations_url":"https://api.github.com/users/deliciousbrains/orgs","repos_url":"https://api.github.com/users/deliciousbrains/repos","events_url":"https://api.github.com/users/deliciousbrains/events{/privacy}","received_events_url":"https://api.github.com/users/deliciousbrains/received_events","type":"Organization","site_admin":false},"repo":{"id":41502787,"name":"GlotPress","full_name":"deliciousbrains/GlotPress","owner":{"login":"deliciousbrains","id":3844035,"avatar_url":"https://avatars.githubusercontent.com/u/3844035?v=3","gravatar_id":"","url":"https://api.github.com/users/deliciousbrains","html_url":"https://github.com/deliciousbrains","followers_url":"https://api.github.com/users/deliciousbrains/followers","following_url":"https://api.github.com/users/deliciousbrains/following{/other_user}","gists_url":"https://api.github.com/users/deliciousbrains/gists{/gist_id}","starred_url":"https://api.github.com/users/deliciousbrains/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deliciousbrains/subscriptions","organizations_url":"https://api.github.com/users/deliciousbrains/orgs","repos_url":"https://api.github.com/users/deliciousbrains/repos","events_url":"https://api.github.com/users/deliciousbrains/events{/privacy}","received_events_url":"https://api.github.com/users/deliciousbrains/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/deliciousbrains/GlotPress","description":"GlotPress, a Future WordPress Plugin","fork":false,"url":"https://api.github.com/repos/deliciousbrains/GlotPress","forks_url":"https://api.github.com/repos/deliciousbrains/GlotPress/forks","keys_url":"https://api.github.com/repos/deliciousbrains/GlotPress/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deliciousbrains/GlotPress/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deliciousbrains/GlotPress/teams","hooks_url":"https://api.github.com/repos/deliciousbrains/GlotPress/hooks","issue_events_url":"https://api.github.com/repos/deliciousbrains/GlotPress/issues/events{/number}","events_url":"https://api.github.com/repos/deliciousbrains/GlotPress/events","assignees_url":"https://api.github.com/repos/deliciousbrains/GlotPress/assignees{/user}","branches_url":"https://api.github.com/repos/deliciousbrains/GlotPress/branches{/branch}","tags_url":"https://api.github.com/repos/deliciousbrains/GlotPress/tags","blobs_url":"https://api.github.com/repos/deliciousbrains/GlotPress/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deliciousbrains/GlotPress/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deliciousbrains/GlotPress/git/refs{/sha}","trees_url":"https://api.github.com/repos/deliciousbrains/GlotPress/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deliciousbrains/GlotPress/statuses/{sha}","languages_url":"https://api.github.com/repos/deliciousbrains/GlotPress/languages","stargazers_url":"https://api.github.com/repos/deliciousbrains/GlotPress/stargazers","contributors_url":"https://api.github.com/repos/deliciousbrains/GlotPress/contributors","subscribers_url":"https://api.github.com/repos/deliciousbrains/GlotPress/subscribers","subscription_url":"https://api.github.com/repos/deliciousbrains/GlotPress/subscription","commits_url":"https://api.github.com/repos/deliciousbrains/GlotPress/commits{/sha}","git_commits_url":"https://api.github.com/repos/deliciousbrains/GlotPress/git/commits{/sha}","comments_url":"https://api.github.com/repos/deliciousbrains/GlotPress/comments{/number}","issue_comment_url":"https://api.github.com/repos/deliciousbrains/GlotPress/issues/comments{/number}","contents_url":"https://api.github.com/repos/deliciousbrains/GlotPress/contents/{+path}","compare_url":"https://api.github.com/repos/deliciousbrains/GlotPress/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deliciousbrains/GlotPress/merges","archive_url":"https://api.github.com/repos/deliciousbrains/GlotPress/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deliciousbrains/GlotPress/downloads","issues_url":"https://api.github.com/repos/deliciousbrains/GlotPress/issues{/number}","pulls_url":"https://api.github.com/repos/deliciousbrains/GlotPress/pulls{/number}","milestones_url":"https://api.github.com/repos/deliciousbrains/GlotPress/milestones{/number}","notifications_url":"https://api.github.com/repos/deliciousbrains/GlotPress/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deliciousbrains/GlotPress/labels{/name}","releases_url":"https://api.github.com/repos/deliciousbrains/GlotPress/releases{/id}","created_at":"2015-08-27T18:00:04Z","updated_at":"2015-12-13T16:24:54Z","pushed_at":"2015-12-13T22:01:32Z","git_url":"git://github.com/deliciousbrains/GlotPress.git","ssh_url":"git@github.com:deliciousbrains/GlotPress.git","clone_url":"https://github.com/deliciousbrains/GlotPress.git","svn_url":"https://github.com/deliciousbrains/GlotPress","homepage":"http://blog.glotpress.org/2015/10/01/glotpress-a-future-wordpress-plugin/","size":2016,"stargazers_count":34,"watchers_count":34,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":36,"forks":13,"open_issues":36,"watchers":34,"default_branch":"wordpress-plugin-dbi"}},"base":{"label":"deliciousbrains:wordpress-plugin-dbi","ref":"wordpress-plugin-dbi","sha":"42431a6c0d44b55a517415d9d0c6fc4d054b3c3d","user":{"login":"deliciousbrains","id":3844035,"avatar_url":"https://avatars.githubusercontent.com/u/3844035?v=3","gravatar_id":"","url":"https://api.github.com/users/deliciousbrains","html_url":"https://github.com/deliciousbrains","followers_url":"https://api.github.com/users/deliciousbrains/followers","following_url":"https://api.github.com/users/deliciousbrains/following{/other_user}","gists_url":"https://api.github.com/users/deliciousbrains/gists{/gist_id}","starred_url":"https://api.github.com/users/deliciousbrains/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deliciousbrains/subscriptions","organizations_url":"https://api.github.com/users/deliciousbrains/orgs","repos_url":"https://api.github.com/users/deliciousbrains/repos","events_url":"https://api.github.com/users/deliciousbrains/events{/privacy}","received_events_url":"https://api.github.com/users/deliciousbrains/received_events","type":"Organization","site_admin":false},"repo":{"id":41502787,"name":"GlotPress","full_name":"deliciousbrains/GlotPress","owner":{"login":"deliciousbrains","id":3844035,"avatar_url":"https://avatars.githubusercontent.com/u/3844035?v=3","gravatar_id":"","url":"https://api.github.com/users/deliciousbrains","html_url":"https://github.com/deliciousbrains","followers_url":"https://api.github.com/users/deliciousbrains/followers","following_url":"https://api.github.com/users/deliciousbrains/following{/other_user}","gists_url":"https://api.github.com/users/deliciousbrains/gists{/gist_id}","starred_url":"https://api.github.com/users/deliciousbrains/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deliciousbrains/subscriptions","organizations_url":"https://api.github.com/users/deliciousbrains/orgs","repos_url":"https://api.github.com/users/deliciousbrains/repos","events_url":"https://api.github.com/users/deliciousbrains/events{/privacy}","received_events_url":"https://api.github.com/users/deliciousbrains/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/deliciousbrains/GlotPress","description":"GlotPress, a Future WordPress Plugin","fork":false,"url":"https://api.github.com/repos/deliciousbrains/GlotPress","forks_url":"https://api.github.com/repos/deliciousbrains/GlotPress/forks","keys_url":"https://api.github.com/repos/deliciousbrains/GlotPress/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deliciousbrains/GlotPress/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deliciousbrains/GlotPress/teams","hooks_url":"https://api.github.com/repos/deliciousbrains/GlotPress/hooks","issue_events_url":"https://api.github.com/repos/deliciousbrains/GlotPress/issues/events{/number}","events_url":"https://api.github.com/repos/deliciousbrains/GlotPress/events","assignees_url":"https://api.github.com/repos/deliciousbrains/GlotPress/assignees{/user}","branches_url":"https://api.github.com/repos/deliciousbrains/GlotPress/branches{/branch}","tags_url":"https://api.github.com/repos/deliciousbrains/GlotPress/tags","blobs_url":"https://api.github.com/repos/deliciousbrains/GlotPress/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deliciousbrains/GlotPress/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deliciousbrains/GlotPress/git/refs{/sha}","trees_url":"https://api.github.com/repos/deliciousbrains/GlotPress/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deliciousbrains/GlotPress/statuses/{sha}","languages_url":"https://api.github.com/repos/deliciousbrains/GlotPress/languages","stargazers_url":"https://api.github.com/repos/deliciousbrains/GlotPress/stargazers","contributors_url":"https://api.github.com/repos/deliciousbrains/GlotPress/contributors","subscribers_url":"https://api.github.com/repos/deliciousbrains/GlotPress/subscribers","subscription_url":"https://api.github.com/repos/deliciousbrains/GlotPress/subscription","commits_url":"https://api.github.com/repos/deliciousbrains/GlotPress/commits{/sha}","git_commits_url":"https://api.github.com/repos/deliciousbrains/GlotPress/git/commits{/sha}","comments_url":"https://api.github.com/repos/deliciousbrains/GlotPress/comments{/number}","issue_comment_url":"https://api.github.com/repos/deliciousbrains/GlotPress/issues/comments{/number}","contents_url":"https://api.github.com/repos/deliciousbrains/GlotPress/contents/{+path}","compare_url":"https://api.github.com/repos/deliciousbrains/GlotPress/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deliciousbrains/GlotPress/merges","archive_url":"https://api.github.com/repos/deliciousbrains/GlotPress/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deliciousbrains/GlotPress/downloads","issues_url":"https://api.github.com/repos/deliciousbrains/GlotPress/issues{/number}","pulls_url":"https://api.github.com/repos/deliciousbrains/GlotPress/pulls{/number}","milestones_url":"https://api.github.com/repos/deliciousbrains/GlotPress/milestones{/number}","notifications_url":"https://api.github.com/repos/deliciousbrains/GlotPress/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deliciousbrains/GlotPress/labels{/name}","releases_url":"https://api.github.com/repos/deliciousbrains/GlotPress/releases{/id}","created_at":"2015-08-27T18:00:04Z","updated_at":"2015-12-13T16:24:54Z","pushed_at":"2015-12-13T22:01:32Z","git_url":"git://github.com/deliciousbrains/GlotPress.git","ssh_url":"git@github.com:deliciousbrains/GlotPress.git","clone_url":"https://github.com/deliciousbrains/GlotPress.git","svn_url":"https://github.com/deliciousbrains/GlotPress","homepage":"http://blog.glotpress.org/2015/10/01/glotpress-a-future-wordpress-plugin/","size":2016,"stargazers_count":34,"watchers_count":34,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":36,"forks":13,"open_issues":36,"watchers":34,"default_branch":"wordpress-plugin-dbi"}},"_links":{"self":{"href":"https://api.github.com/repos/deliciousbrains/GlotPress/pulls/83"},"html":{"href":"https://github.com/deliciousbrains/GlotPress/pull/83"},"issue":{"href":"https://api.github.com/repos/deliciousbrains/GlotPress/issues/83"},"comments":{"href":"https://api.github.com/repos/deliciousbrains/GlotPress/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/deliciousbrains/GlotPress/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/deliciousbrains/GlotPress/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/deliciousbrains/GlotPress/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/deliciousbrains/GlotPress/statuses/b2a79a9a73153c980392536e95dc6f214edea186"}}}}