[wp-trac] [WordPress Trac] #54375: Add is_post_status_viewable filter
WordPress Trac
noreply at wordpress.org
Mon Nov 8 18:06:43 UTC 2021
#54375: Add is_post_status_viewable filter
-----------------------------------------------+---------------------------
Reporter: peterwilsoncc | Owner:
| hellofromTonya
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.9
Component: Posts, Post Types | Version:
Severity: normal | Resolution: fixed
Keywords: needs-patch needs-dev-note commit | Focuses:
-----------------------------------------------+---------------------------
Changes (by SergeyBiryukov):
* status: reopened => closed
* resolution: => fixed
Comment:
Replying to [comment:6 hellofromTonya]:
> [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.
Thank you for pointing me to that discussion! Knowing the context helps a
lot, I appreciate the explanation.
Re-closing this to keep the discussion in one place. Will comment on the
other ticket once I have an informed opinion.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54375#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list