[wp-trac] [WordPress Trac] #56215: Introduce `is_term_publicly_viewable()` function

WordPress Trac noreply at wordpress.org
Sat Aug 13 22:42:27 UTC 2022


#56215: Introduce `is_term_publicly_viewable()` function
--------------------------------------+--------------------------
 Reporter:  johnbillion               |       Owner:  johnbillion
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  6.1
Component:  Taxonomy                  |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------------
Changes (by johnbillion):

 * owner:  (none) => johnbillion
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"53893" 53893]:
 {{{
 #!CommitTicketReference repository="" revision="53893"
 Taxonomy: Introduce the `is_term_publicly_viewable()` function.

 This is the taxonomy term counterpart to the `is_post_publicly_viewable()`
 function. Although the logic for terms is more straight forward this
 serves the same purpose as introducing the corresponding function for
 posts -- to centralise and reduce the logic needed to validate a term and
 determine if it's publicly viewable.

 Props peterwilsoncc, costdev, johnbillion

 Fixes #56215
 }}}

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


More information about the wp-trac mailing list