-
Notifications
You must be signed in to change notification settings - Fork 72
Remove unused WPT_CERTIFICATE_VALIDATION environment variable #282
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
Remove unused WPT_CERTIFICATE_VALIDATION environment variable #282
Conversation
- Remove dead code related to WPT_CERTIFICATE_VALIDATION in prepare.php - Remove WPT_CERTIFICATE_VALIDATION processing from setup_runner_env_vars() - Update PHPDoc to reflect removed functionality - Fixes issue WordPress#265 where environment variable was processed but never used
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
kindly check my latest changes? |
desrosj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @prab18hat! Thanks for this. I haven't gotten to test, but the PR looks good at first glance.
Before merging, I would like to get a better understanding around the history of the setting.
- Was it ever used correctly?
- Does the scenario it was meant to address still exist?
- etc.
Hey @desrosj! Thanks for the thorough review! Your questions about the history are spot on - it's always good to understand the "why" behind changes like this. I spent some time digging through the code and commit history to give you a complete answer:
|
|
Understanding when it was introduced and removed is important to understand because it's possible that there are bugs even if none have been reported. It looks like this was introduced in 559984c and removed in c3bdc43. Disabling certificate validation was only ever used for downloading the WordPress Importer plugin. Since that's no longer necessary, this can safely be removed. |
@desrosj Perfect! Thanks for digging into those specific commits - that's exactly the context I was looking for but couldn't find in my initial search. Great to have confirmation that it was specifically for the WordPress Importer plugin download, which explains why it became unused dead code. Appreciate you taking the time to research this thoroughly! 👍 |
WPT_CERTIFICATE_VALIDATIONis processed but never used #265 where environment variable was processed but never used