Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress output of eval(get_wp_config_code) preventing errors printing twice #188

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

pwtyler
Copy link
Contributor

@pwtyler pwtyler commented Sep 17, 2024

eval() was printing notices/warnings/errors coming from wp-config.php twice. This introduces output buffering to discard the "internal" printing.

Fixes: wp-cli/wp-cli#4944

Part of wp-cli/wp-cli#5985

@pwtyler pwtyler marked this pull request as ready for review September 17, 2024 19:10
@pwtyler pwtyler requested a review from a team as a code owner September 17, 2024 19:10
@pwtyler
Copy link
Contributor Author

pwtyler commented Oct 16, 2024

@schlessera, could we get 👀 on this? Anything further to consider?

@schlessera schlessera added the bug label Nov 1, 2024
@schlessera schlessera added this to the 2.3.8 milestone Nov 1, 2024
@schlessera schlessera merged commit 7f022d1 into wp-cli:main Nov 1, 2024
66 of 68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Constant XXX already defined notice output twice
2 participants