[wp-trac] [WordPress Trac] #44466: Have a method to check if a taxonomy is viewable
WordPress Trac
noreply at wordpress.org
Tue Jun 26 14:08:58 UTC 2018
#44466: Have a method to check if a taxonomy is viewable
-------------------------------------------------+-------------------------
Reporter: andizer | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.0
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests good- | Focuses:
first-bug |
-------------------------------------------------+-------------------------
Comment (by SergeyBiryukov):
Replying to [comment:1 flixos90]:
> I'm wondering about `is_post_type_viewable()`: Why does it use `$public`
for built-in post types and `$publicly_queryable` for all the others?
Because `publicly_queryable` is false for pages, but they're still
considered viewable. See [33666] and [18234] for some more context.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44466#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list