[wp-trac] [WordPress Trac] #46813: wp_die() may generate doing_it_wrong notices, confusing other WP error handling

WordPress Trac noreply at wordpress.org
Mon Apr 15 23:48:18 UTC 2019


#46813: wp_die() may generate doing_it_wrong notices, confusing other WP error
handling
-------------------------------------------------+-------------------------
 Reporter:  ohiosierra                           |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.2
Component:  Bootstrap/Load                       |     Version:  trunk
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  servehappy has-patch has-unit-tests  |     Focuses:
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"45206" 45206]:
 {{{
 #!CommitTicketReference repository="" revision="45206"
 Bootstrap/Load: After [45016], make sure `wp_die()` does not cause
 `_doing_it_wrong()` notices if called before `$wp_query` global is set.

 Props tmdesigned, TimothyBlynJacobs.
 Fixes #46813.
 }}}

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


More information about the wp-trac mailing list