{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/15a190d597c03c73b08ad51486017449?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"15a190d597c03c73b08ad51486017449","url":"https://api.github.com/users/zanematthew","login":"zanematthew","id":654712},"milestone":{"state":"open","open_issues":26,"url":"https://api.github.com/repos/zanematthew/task-tracker/milestones/3","due_on":null,"description":"","creator":{"avatar_url":"https://secure.gravatar.com/avatar/15a190d597c03c73b08ad51486017449?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"15a190d597c03c73b08ad51486017449","url":"https://api.github.com/users/zanematthew","login":"zanematthew","id":654712},"number":3,"title":"v1.5-beta","closed_issues":20,"created_at":"2011-09-23T06:49:07Z"},"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/d5c692a00b170aae062596083e436646?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d5c692a00b170aae062596083e436646","url":"https://api.github.com/users/peterstayne","login":"peterstayne","id":16435},"labels":[{"name":"Refactor","color":"d7e102","url":"https://api.github.com/repos/zanematthew/task-tracker/labels/Refactor"}],"updated_at":"2011-11-02T23:59:42Z","comments":1,"closed_at":"2011-11-02T23:59:42Z","url":"https://api.github.com/repos/zanematthew/task-tracker/issues/66","body":"find a better way to put the post id in global scope. Currently its based around like this:\r\n\r\nin a template(s) just search for data-post_id in /themes: \r\ndata-post_id=\"<?php $id; ?>\"\r\n\r\nin the script.js:\r\nparams.post_id = $( '#task_entry_utility_handle' ).attr( 'data-post_id' );\r\n\r\nand in single-task.php:\r\n<script type=\"text/javascript\">\r\nvar _post_id = <?php print $post->ID; ?>\r\n</script>\r\n\r\nwe should be able to put this in global scope somewhere, its all spit out in single template pages via WP in the body class like:\r\nbody class=\"postid-419\"\r\n\r\nI'd prefer to derive it from the body class=\"postid-419\", before I spit it out via wp_head/footer. Let me know if you think its even worth it to derive it from body class, else I'll just spit it out using wp_head/footer","html_url":"https://github.com/zanematthew/task-tracker/issues/66","number":66,"title":"Post ID in global scope","id":1798509,"created_at":"2011-10-02T21:58:37Z"},"action":"closed"}