Repository navigation
Add preserveSiteUrl option to prevent port appending to the site URL - #69817
Sukhendu2002 wants to merge 2 commits into
Conversation
|
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. |
|
Oh wow, thank you for implementing the feature, @Sukhendu2002. That's very thorough, including:
One point I wonder about is the naming of the option, if there might be a more specific name that describes its purpose. The current name sounds like it affects all URL values, to prevent them from being processed in any way. ..How about the documentation can mention that it only affects the site URL. -prevent port numbers from being automatically appended to URLs
+prevent port number from being appended to the site URLMaybe the option name can be About "unlinked contributors" mentioned by the @github-actions bot, I linked my GitHub and wp.org accounts according to the article. |
What?
Closes : #69776
This PR adds a new
preserveSiteUrloption to wp-env that prevent port number from being appended to the site URL in config values likeWP_SITEURLandWP_HOME.Sample .wp-env.json
{ "preserveSiteUrl": true, "config": { "WP_SITEURL": "https://wp.local", "WP_HOME": "https://wp.local" } }