[wp-trac] [WordPress Trac] #48653: PHP Notices when requesting a post with an unregistered status
    WordPress Trac 
    noreply at wordpress.org
       
    Tue Feb  4 22:20:37 UTC 2020
    
    
  
#48653: PHP Notices when requesting a post with an unregistered status
----------------------------------------+-----------------------------
 Reporter:  roytanck                    |       Owner:  SergeyBiryukov
     Type:  defect (bug)                |      Status:  closed
 Priority:  normal                      |   Milestone:  5.4
Component:  Posts, Post Types           |     Version:  3.0
 Severity:  normal                      |  Resolution:  fixed
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+-----------------------------
Comment (by SergeyBiryukov):
 In [changeset:"47179" 47179]:
 {{{
 #!CommitTicketReference repository="" revision="47179"
 Posts, Post Types: Fail gracefully when checking whether the post should
 be displayed in `WP_Query::get_posts()` against unregistered post status.
 If the post status is not registered, assume it's not public.
 Follow-up to [47178].
 Props roytanck.
 See #48653.
 }}}
-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48653#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list