[wp-trac] [WordPress Trac] #44466: Have a method to check if a taxonomy is viewable

WordPress Trac noreply at wordpress.org
Tue Jun 26 13:49:37 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                                      |
-------------------------------------------------+-------------------------
Changes (by flixos90):

 * keywords:   => needs-patch needs-unit-tests good-first-bug
 * milestone:  Awaiting Review => 5.0


Comment:

 This makes complete sense to me, for both parity and solving a common use-
 case universally. Let's introduce `is_taxonomy_viewable()`.

 This should be an easy thing, before we implement it though, 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? I feel like it
 would make more sense if it only looked at `$publicly_queryable` in all
 cases.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44466#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list