[wp-trac] [WordPress Trac] #37462: Introduce is_private() conditional
WordPress Trac
noreply at wordpress.org
Fri Aug 5 02:01:40 UTC 2016
#37462: Introduce is_private() conditional
------------------------------------------+------------------------------
Reporter: sillybean | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses: template
------------------------------------------+------------------------------
Changes (by johnbillion):
* keywords: => needs-patch needs-unit-tests
* version: trunk =>
Comment:
Thanks for the patch, @sillybean. Some feedback for you:
* This probably needs a more descriptive function name, such as
`is_private_post()`.
* Have you tested this function? It's checking the value of the
`post_password` field.
* This will need unit tests to avoid the above.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37462#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list