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

WordPress Trac noreply at wordpress.org
Sat Apr 13 23:57:15 UTC 2019


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

Comment (by TimothyBlynJacobs):

 I also don't think we should mask all `_doing_it_wrong`s in `wp_die()`.
 The notice is there for a reason, just because you are using `wp_die()`
 shouldn't mean that the warning is suppressed, particularly since it is a
 `WP_DEBUG` only feature _and_ `wp_die()` is no longer guaranteed to
 `die()`.

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


More information about the wp-trac mailing list