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

WordPress Trac noreply at wordpress.org
Mon Nov 8 04:45:07 UTC 2021


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

Comment (by peterwilsoncc):

 The functional change in [attachment:"49628.6.diff"] looks good to me.

 In [attachment:"49628.7.diff"] I've added a note to the filter description
 indicating that for a post to be considered viewable the filter must
 return a boolean true with an explanation as to why.

 @hellofromTonya if you don't think the explanation is required, then I'm
 happy if your version of the patch goes in.

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


More information about the wp-trac mailing list