Opened 6 years ago
Closed 6 years ago
#46460 closed defect (bug) (fixed)
wp_die_handler() in the test suite should accept a WP_Error object
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.2 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | has-patch |
Focuses: | Cc: |
Description
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
.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
In 44944: