[wp-trac] [WordPress Trac] #37462: Introduce is_private() conditional

WordPress Trac noreply at wordpress.org
Wed Aug 7 09:12:24 UTC 2019


#37462: Introduce is_private() conditional
------------------------------------------+-----------------------
 Reporter:  sillybean                     |       Owner:  (none)
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:
Component:  Posts, Post Types             |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:  template
------------------------------------------+-----------------------
Changes (by donmhico):

 * Attachment "37462.diff" added.

 Added new function `is_private_post()` and unit test for it.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/37462>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list