[wp-trac] [WordPress Trac] #54375: Add is_post_status_viewable filter
WordPress Trac
noreply at wordpress.org
Mon Nov 8 15:55:30 UTC 2021
#54375: Add is_post_status_viewable filter
-----------------------------------------------+---------------------------
Reporter: peterwilsoncc | Owner:
| hellofromTonya
Type: enhancement | Status: reopened
Priority: normal | Milestone: 5.9
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: needs-patch needs-dev-note commit | Focuses:
-----------------------------------------------+---------------------------
Comment (by hellofromTonya):
@SergeyBiryukov [https://core.trac.wordpress.org/ticket/49628#comment:24
See the explanation here] as to why type casting is unpredictable and why
a strict boolean check is used instead. Please note, strict boolean checks
are also in Core. This types of checks are more future proof, predictable,
and stable than type casting.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54375#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list