{"action":"created","issue":{"url":"https://api.github.com/repos/redacademy/bix-summer-2016/issues/3","repository_url":"https://api.github.com/repos/redacademy/bix-summer-2016","labels_url":"https://api.github.com/repos/redacademy/bix-summer-2016/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/redacademy/bix-summer-2016/issues/3/comments","events_url":"https://api.github.com/repos/redacademy/bix-summer-2016/issues/3/events","html_url":"https://github.com/redacademy/bix-summer-2016/issues/3","id":177235695,"number":3,"title":"Don't use \"get_\" functions where they're not needed","user":{"login":"mandiwise","id":1518780,"avatar_url":"https://avatars.githubusercontent.com/u/1518780?v=3","gravatar_id":"","url":"https://api.github.com/users/mandiwise","html_url":"https://github.com/mandiwise","followers_url":"https://api.github.com/users/mandiwise/followers","following_url":"https://api.github.com/users/mandiwise/following{/other_user}","gists_url":"https://api.github.com/users/mandiwise/gists{/gist_id}","starred_url":"https://api.github.com/users/mandiwise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mandiwise/subscriptions","organizations_url":"https://api.github.com/users/mandiwise/orgs","repos_url":"https://api.github.com/users/mandiwise/repos","events_url":"https://api.github.com/users/mandiwise/events{/privacy}","received_events_url":"https://api.github.com/users/mandiwise/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-15T17:22:21Z","updated_at":"2016-09-15T23:02:04Z","closed_at":null,"body":"For example on line 43 of single.php, you have:\r\n\r\n```php\r\necho esc_url( get_permalink(67) );\r\n```\r\n\r\nYou have to echo it because \"get_\" simple returns the value, while this template tag does that but also echoes it:\r\n\r\n```php\r\nesc_url( the_permalink(67) );\r\n```\r\n\r\nAlso, is this the best way to fetch that link? What happens if someone deletes that page and the ID is not longer applicable?"},"comment":{"url":"https://api.github.com/repos/redacademy/bix-summer-2016/issues/comments/247478696","html_url":"https://github.com/redacademy/bix-summer-2016/issues/3#issuecomment-247478696","issue_url":"https://api.github.com/repos/redacademy/bix-summer-2016/issues/3","id":247478696,"user":{"login":"Imarky05","id":20283861,"avatar_url":"https://avatars.githubusercontent.com/u/20283861?v=3","gravatar_id":"","url":"https://api.github.com/users/Imarky05","html_url":"https://github.com/Imarky05","followers_url":"https://api.github.com/users/Imarky05/followers","following_url":"https://api.github.com/users/Imarky05/following{/other_user}","gists_url":"https://api.github.com/users/Imarky05/gists{/gist_id}","starred_url":"https://api.github.com/users/Imarky05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Imarky05/subscriptions","organizations_url":"https://api.github.com/users/Imarky05/orgs","repos_url":"https://api.github.com/users/Imarky05/repos","events_url":"https://api.github.com/users/Imarky05/events{/privacy}","received_events_url":"https://api.github.com/users/Imarky05/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T23:02:04Z","updated_at":"2016-09-15T23:02:04Z","body":"The markup for single.php has been changed.\r\n"}}
{"actor":{"display_login":"Imarky05"}}