Changes between Initial Version and Version 1 of Ticket #47266
- Timestamp:
- 05/14/2019 06:22:19 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #47266
- Property Keywords servehappy added; site-health removed
-
Property
Summary
changed from
Site health template should not be displayed for CLI scriptstoTemplate of shutdown handler for fatal errors should not be displayed for CLI scripts
-
Ticket #47266 – Description
initial v1 1 1 When running a CLI script that has a syntax error, the template's raw HTML and CSS are output to the command line. 2 2 3 I don't think that the Site Health featureshould be loaded in a CLI context; instead, the default PHP behavior should be used instead.3 I don't think that the shutdown handler for fatal errors should be loaded in a CLI context; instead, the default PHP behavior should be used instead. 4 4 5 5 This should handle the case where the CLI script is being run through WP-CLI, and also older scripts that were built before WP-CLI existed, which just load WP manually (i.e., check `'cli' === php_sapi_name()` rather than `defined( 'WP_CLI' )` ).