[wp-trac] [WordPress Trac] #49628: Add is_post_type_viewable filter

WordPress Trac noreply at wordpress.org
Mon Nov 8 15:33:24 UTC 2021


#49628: Add is_post_type_viewable filter
---------------------------------------------+-----------------------------
 Reporter:  powerbuoy                        |       Owner:  hellofromTonya
     Type:  feature request                  |      Status:  closed
 Priority:  normal                           |   Milestone:  5.9
Component:  Posts, Post Types                |     Version:  5.3.2
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch needs-dev-note commit  |     Focuses:  administration
---------------------------------------------+-----------------------------
Changes (by hellofromTonya):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52045" 52045]:
 {{{
 #!CommitTicketReference repository="" revision="52045"
 Posts/Post Types: Improves the `'is_post_type_viewable'` filter boolean
 return.

 As a follow-up to [52024], simplifies the strict boolean type check to
 conserve memory and processing. Also includes an explanation of why a
 strict boolean is required as the returned filtered value. This commit is
 consistent with the implementation in [52043].

 Follow-up to [33666], [36402], [52024].

 Props hellofromTonya, peterwilsoncc, cybr, jrf.
 Fixes #49628.
 }}}

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


More information about the wp-trac mailing list