{"action":"created","issue":{"url":"https://api.github.com/repos/Nikeo/customizr/issues/99","labels_url":"https://api.github.com/repos/Nikeo/customizr/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/Nikeo/customizr/issues/99/comments","events_url":"https://api.github.com/repos/Nikeo/customizr/issues/99/events","html_url":"https://github.com/Nikeo/customizr/pull/99","id":63839624,"number":99,"title":"Fix: hook post-metas and headings early actions to wp_head instead of wp","user":{"login":"eri-trabiccolo","id":7689242,"avatar_url":"https://avatars.githubusercontent.com/u/7689242?v=3","gravatar_id":"","url":"https://api.github.com/users/eri-trabiccolo","html_url":"https://github.com/eri-trabiccolo","followers_url":"https://api.github.com/users/eri-trabiccolo/followers","following_url":"https://api.github.com/users/eri-trabiccolo/following{/other_user}","gists_url":"https://api.github.com/users/eri-trabiccolo/gists{/gist_id}","starred_url":"https://api.github.com/users/eri-trabiccolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eri-trabiccolo/subscriptions","organizations_url":"https://api.github.com/users/eri-trabiccolo/orgs","repos_url":"https://api.github.com/users/eri-trabiccolo/repos","events_url":"https://api.github.com/users/eri-trabiccolo/events{/privacy}","received_events_url":"https://api.github.com/users/eri-trabiccolo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-23T21:44:27Z","updated_at":"2015-03-24T08:09:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Nikeo/customizr/pulls/99","html_url":"https://github.com/Nikeo/customizr/pull/99","diff_url":"https://github.com/Nikeo/customizr/pull/99.diff","patch_url":"https://github.com/Nikeo/customizr/pull/99.patch"},"body":"Could you please include also this small pull-request?\r\nAs I told you I was digging into displaying a static front page with pagination (template with a custom loop) and found that some of those actions hooked to wp, for some reason, reset the query var 'page', which is needed in those cases (https://codex.wordpress.org/Pagination#static_front_page) . I've found that the problem happened (for example, in headings) here: https://github.com/Nikeo/customizr/blob/master/inc/parts/class-content-headings.php#L71 (when hooked to wp). Basically the <pre>is_front_page()</pre> caused that. I cannot understand the reason though.\r\nSo not all those methods should be re-hooked to wp_head to avoid this, just the ones which refers to is_front_page(), tc__f('__is_home') and so on.\r\nI think there's nothing wrong with that, right? I mean, no side effects..\r\nI also hope this can fix the issue with some plugins showing custom loops in static home front page (see edd).\r\nFor sure it fixes the issue with my template ;)\r\nBut if you have any doubt  well I don't get offended :package: \r\n\r\nGood night ;)"},"comment":{"url":"https://api.github.com/repos/Nikeo/customizr/issues/comments/85390388","html_url":"https://github.com/Nikeo/customizr/pull/99#issuecomment-85390388","issue_url":"https://api.github.com/repos/Nikeo/customizr/issues/99","id":85390388,"user":{"login":"Nikeo","id":3038156,"avatar_url":"https://avatars.githubusercontent.com/u/3038156?v=3","gravatar_id":"","url":"https://api.github.com/users/Nikeo","html_url":"https://github.com/Nikeo","followers_url":"https://api.github.com/users/Nikeo/followers","following_url":"https://api.github.com/users/Nikeo/following{/other_user}","gists_url":"https://api.github.com/users/Nikeo/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikeo/subscriptions","organizations_url":"https://api.github.com/users/Nikeo/orgs","repos_url":"https://api.github.com/users/Nikeo/repos","events_url":"https://api.github.com/users/Nikeo/events{/privacy}","received_events_url":"https://api.github.com/users/Nikeo/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T08:09:35Z","updated_at":"2015-03-24T08:09:35Z","body":"OK Thanks. I guess you already tried template_redirect ?"}}