[wp-trac] [WordPress Trac] #46460: wp_die_handler() in the test suite should accept a WP_Error object

WordPress Trac noreply at wordpress.org
Sun Mar 10 12:08:25 UTC 2019


#46460: wp_die_handler() in the test suite should accept a WP_Error object
------------------------------+----------------------------
 Reporter:  johnbillion       |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Future Release
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  needs-patch
  Focuses:                    |
------------------------------+----------------------------
 The default handlers for calls to `wp_die()` accept a `WP_Error` object in
 the `$message` parameter. The handler in the test suite does not.

 Core passes a `WP_Error` object to `wp_die()` in a few places, for example
 in `wp-includes/template-loader.php` if there's a problem with the theme.
 Currently, this error object gets converted to a string in the test suite,
 resulting in a test failure message that states `WPDieException: 0`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46460>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list