[wp-trac] [WordPress Trac] #47266: Template of shutdown handler for fatal errors should not be displayed for CLI scripts
WordPress Trac
noreply at wordpress.org
Tue May 14 20:02:47 UTC 2019
#47266: Template of shutdown handler for fatal errors should not be displayed for
CLI scripts
----------------------------+------------------------------
Reporter: iandunn | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 5.2
Severity: normal | Resolution:
Keywords: servehappy | Focuses:
----------------------------+------------------------------
Comment (by SergeyBiryukov):
Replying to [comment:1 ocean90]:
> An alternative would be to add a `wp_die` handler for CLI context.
We have (currently unused) `_scalar_wp_die_handler()`, which seems like a
good fit.
Introduced in [20063], unused since [21818].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47266#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list