Skip to content

Conversation

westonruter
Copy link
Member

When display_errors is enabled, this temporarily turns off that setting and then adds an error handler to capture errors while applying wp_template_enhancement_output_buffer filters. After the filters have applied, it then appends any captured errors to the buffer. This fixes an issue where errors emitted during an output buffer callback are suppressed from the output which even though a site may have WP_DEBUG_DISPLAY enabled. In PHP 8.5, a deprecation notice is shown but the emitted errors are not displayed.

Trac ticket: https://core.trac.wordpress.org/ticket/64108


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant