SSL on reverse proxy code example update #169
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
good first issue
Good for newcomers
Issue Description
The code example currently on this page will throw PHP notices when running WP-CLI commands, potentially in other situations in which
wp-config.php
is loaded outside the context of a normal web request, or when the request is missing expected headers.URL of the Page with the Issue
https://wordpress.org/support/article/administration-over-ssl/
Section of Page with the issue
The Reverse Proxy example
Why is this a problem?
PHP notices are noisy.
Suggested Fix
Should become...
Personally, I'd also add curly braces, but I would ultimately defer that decision to core's code style guide. Not sure what the policy is without looking.
The text was updated successfully, but these errors were encountered: