Skip to content

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

Merged
schlessera merged 1 commit intowp-cli:mainfrom
pwtyler:double-errors-4944
Nov 1, 2024
Merged

Suppress output of eval(get_wp_config_code) preventing errors printing twice#188
schlessera merged 1 commit intowp-cli:mainfrom
pwtyler:double-errors-4944

Conversation

@pwtyler
Copy link
Copy Markdown
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
Copy Markdown
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants