[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 15:32:48 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 tmdesigned):
I've added a unit test, but I will note that this is my first unit test
contribution so I would appreciate feedback.
It was also a little tricky because the unit test environment is already
manipulating the error handling, so I had to back pedal that a little bit.
The test throws an error before the patch, and no error after the patch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46813#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list