{"id":18996034,"date":"2026-08-18T06:24:57","date_gmt":"2026-08-18T06:24:57","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/post_status-not-working-for-future-posts\/"},"modified":"2026-08-18T06:24:57","modified_gmt":"2026-08-18T06:24:57","slug":"post_status-not-working-for-future-posts","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/post_status-not-working-for-future-posts\/","title":{"rendered":"post_status not working for future posts"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Version 0.93 introduced post status sanitization for certain logged in users. If we use a post_status of &#8216;future&#8217; this works OK for admins and editors, but users who are not logged in see posts with status &#8216;publish&#8217;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The problem seems to lie with line 624 in lcp-catlist.php, in the &#8216;sanitize_status&#8217; function. The &#8216;public&#8217; array only contains &#8216;publish&#8217; so if a user is not logged on and the lcp catlist arguments have a post_status of &#8216;future&#8217;, the intersection returns an empty result, leading to the defaults being applied. Thus admins and editors see all posts with status &#8216;future&#8217; but non-logged in users see only published posts. <\/p>\n","protected":false},"template":"","class_list":["post-18996034","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18996034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18996034\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18996034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}