{"action":"created","issue":{"url":"https://api.github.com/repos/Yoast/yoastseo-amp/issues/94","repository_url":"https://api.github.com/repos/Yoast/yoastseo-amp","labels_url":"https://api.github.com/repos/Yoast/yoastseo-amp/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/Yoast/yoastseo-amp/issues/94/comments","events_url":"https://api.github.com/repos/Yoast/yoastseo-amp/issues/94/events","html_url":"https://github.com/Yoast/yoastseo-amp/pull/94","id":323306490,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg4MTk2MzI4","number":94,"title":"Replace deprecated method call","user":{"login":"irakligeek","id":17654771,"node_id":"MDQ6VXNlcjE3NjU0Nzcx","avatar_url":"https://avatars0.githubusercontent.com/u/17654771?v=4","gravatar_id":"","url":"https://api.github.com/users/irakligeek","html_url":"https://github.com/irakligeek","followers_url":"https://api.github.com/users/irakligeek/followers","following_url":"https://api.github.com/users/irakligeek/following{/other_user}","gists_url":"https://api.github.com/users/irakligeek/gists{/gist_id}","starred_url":"https://api.github.com/users/irakligeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irakligeek/subscriptions","organizations_url":"https://api.github.com/users/irakligeek/orgs","repos_url":"https://api.github.com/users/irakligeek/repos","events_url":"https://api.github.com/users/irakligeek/events{/privacy}","received_events_url":"https://api.github.com/users/irakligeek/received_events","type":"User","site_admin":false},"labels":[{"id":958576705,"node_id":"MDU6TGFiZWw5NTg1NzY3MDU=","url":"https://api.github.com/repos/Yoast/yoastseo-amp/labels/needs-changes","name":"needs-changes","color":"78BDF2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-15T17:09:25Z","updated_at":"2018-06-08T19:21:39Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/Yoast/yoastseo-amp/pulls/94","html_url":"https://github.com/Yoast/yoastseo-amp/pull/94","diff_url":"https://github.com/Yoast/yoastseo-amp/pull/94.diff","patch_url":"https://github.com/Yoast/yoastseo-amp/pull/94.patch"},"body":"AMP for WordPress plugins's method `get_body_node()` which is a member of a class `AMP_Base_Sanitizer` is deprecated since version 0.7.0. According to deprecated method comment it has to be replaced by calling the class variable `$root_element` instead, which I did in this case.\r\n@link https://github.com/Automattic/amp-wp/blob/develop/includes/sanitizers/class-amp-base-sanitizer.php\r\n\r\nFixes https://github.com/Yoast/yoastseo-amp/issues/92"},"comment":{"url":"https://api.github.com/repos/Yoast/yoastseo-amp/issues/comments/395863161","html_url":"https://github.com/Yoast/yoastseo-amp/pull/94#issuecomment-395863161","issue_url":"https://api.github.com/repos/Yoast/yoastseo-amp/issues/94","id":395863161,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTg2MzE2MQ==","user":{"login":"irakligeek","id":17654771,"node_id":"MDQ6VXNlcjE3NjU0Nzcx","avatar_url":"https://avatars0.githubusercontent.com/u/17654771?v=4","gravatar_id":"","url":"https://api.github.com/users/irakligeek","html_url":"https://github.com/irakligeek","followers_url":"https://api.github.com/users/irakligeek/followers","following_url":"https://api.github.com/users/irakligeek/following{/other_user}","gists_url":"https://api.github.com/users/irakligeek/gists{/gist_id}","starred_url":"https://api.github.com/users/irakligeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irakligeek/subscriptions","organizations_url":"https://api.github.com/users/irakligeek/orgs","repos_url":"https://api.github.com/users/irakligeek/repos","events_url":"https://api.github.com/users/irakligeek/events{/privacy}","received_events_url":"https://api.github.com/users/irakligeek/received_events","type":"User","site_admin":false},"created_at":"2018-06-08T19:21:38Z","updated_at":"2018-06-08T19:21:38Z","author_association":"NONE","body":"Hi @moorscode \r\n\r\nThanks for your feedback. I've updated the code based on your comment. "}}
{"actor":{"display_login":"irakligeek"}}