{"action":"created","issue":{"url":"https://api.github.com/repos/lesterchan/wp-postviews/issues/29","repository_url":"https://api.github.com/repos/lesterchan/wp-postviews","labels_url":"https://api.github.com/repos/lesterchan/wp-postviews/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/lesterchan/wp-postviews/issues/29/comments","events_url":"https://api.github.com/repos/lesterchan/wp-postviews/issues/29/events","html_url":"https://github.com/lesterchan/wp-postviews/pull/29","id":189006633,"number":29,"title":"Adding %CAT_ID% variable to provide optional category ID into widget output","user":{"login":"FunFrog-BY","id":9034852,"avatar_url":"https://avatars.githubusercontent.com/u/9034852?v=3","gravatar_id":"","url":"https://api.github.com/users/FunFrog-BY","html_url":"https://github.com/FunFrog-BY","followers_url":"https://api.github.com/users/FunFrog-BY/followers","following_url":"https://api.github.com/users/FunFrog-BY/following{/other_user}","gists_url":"https://api.github.com/users/FunFrog-BY/gists{/gist_id}","starred_url":"https://api.github.com/users/FunFrog-BY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FunFrog-BY/subscriptions","organizations_url":"https://api.github.com/users/FunFrog-BY/orgs","repos_url":"https://api.github.com/users/FunFrog-BY/repos","events_url":"https://api.github.com/users/FunFrog-BY/events{/privacy}","received_events_url":"https://api.github.com/users/FunFrog-BY/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-14T00:25:24Z","updated_at":"2016-11-14T12:57:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/lesterchan/wp-postviews/pulls/29","html_url":"https://github.com/lesterchan/wp-postviews/pull/29","diff_url":"https://github.com/lesterchan/wp-postviews/pull/29.diff","patch_url":"https://github.com/lesterchan/wp-postviews/pull/29.patch"},"body":"Hi, i needed to add custom category icons to my sidebar widget so i implemented an optional %CAT_ID% template variable.\r\n\r\nI modified $wpdb queries to get category id's with priority of primary id, if it was set by Yoast Seo plugin.\r\n\r\nAlso i changed double quotes to single in str_replace sequences, cause why there were double quotes anyway?\r\n\r\nAll tested, even get_(most/less)_viewed_tag shortcodes."},"comment":{"url":"https://api.github.com/repos/lesterchan/wp-postviews/issues/comments/260328061","html_url":"https://github.com/lesterchan/wp-postviews/pull/29#issuecomment-260328061","issue_url":"https://api.github.com/repos/lesterchan/wp-postviews/issues/29","id":260328061,"user":{"login":"FunFrog-BY","id":9034852,"avatar_url":"https://avatars.githubusercontent.com/u/9034852?v=3","gravatar_id":"","url":"https://api.github.com/users/FunFrog-BY","html_url":"https://github.com/FunFrog-BY","followers_url":"https://api.github.com/users/FunFrog-BY/followers","following_url":"https://api.github.com/users/FunFrog-BY/following{/other_user}","gists_url":"https://api.github.com/users/FunFrog-BY/gists{/gist_id}","starred_url":"https://api.github.com/users/FunFrog-BY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FunFrog-BY/subscriptions","organizations_url":"https://api.github.com/users/FunFrog-BY/orgs","repos_url":"https://api.github.com/users/FunFrog-BY/repos","events_url":"https://api.github.com/users/FunFrog-BY/events{/privacy}","received_events_url":"https://api.github.com/users/FunFrog-BY/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T12:56:59Z","updated_at":"2016-11-14T12:56:59Z","body":"Changed to %POST_CATEGORY_ID%.\r\n\r\nMySQL measurements:\r\n\r\n\"Short\" query without checking Yoast stuff:\r\n![short](https://cloud.githubusercontent.com/assets/9034852/20265504/761ec1d0-aa82-11e6-8180-08d31d6003da.png)\r\nExecution time ~ 0.0006 sec\r\n\"Long\" query with Yoast support:\r\n![long](https://cloud.githubusercontent.com/assets/9034852/20265530/98f3c84a-aa82-11e6-9ffa-7e672a136b67.png)\r\nExecution time ~ 0.0006 sec\r\n"}}
{"actor":{"display_login":"FunFrog-BY"}}