[wp-trac] [WordPress Trac] #49380: Introduce `is_post_status_viewable()` and `is_post_viewable()` functions.

WordPress Trac noreply at wordpress.org
Wed Jul 29 03:46:54 UTC 2020


#49380: Introduce `is_post_status_viewable()` and `is_post_viewable()` functions.
-------------------------------+----------------------------
 Reporter:  peterwilsoncc      |       Owner:  peterwilsoncc
     Type:  enhancement        |      Status:  assigned
 Priority:  normal             |   Milestone:
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+----------------------------
Changes (by peterwilsoncc):

 * keywords:  close =>
 * milestone:  Future Release =>


Comment:

 @SergeyBiryukov @whyisjake

 Closing this off as `post_status` is not publicly queryable (it's in
 `WP::$private_query_vars` rather than `$public_query_vars`).

 This can probably be dealt with if Post Statuses move beyond the simple
 standard class.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49380#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list