Add optional capture group to url regex in wp-env#43200
Add optional capture group to url regex in wp-env#43200noahtallen merged 5 commits intoWordPress:trunkfrom
Conversation
|
👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @titusdmoore! In case you missed it, we'd love to have you join us in our Slack community, where we hold regularly weekly meetings open to anyone to coordinate with each other. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. |
|
Overall, this looks good to me. Could you update the tests here? gutenberg/packages/env/lib/config/test/config.js Lines 522 to 581 in 6dcf85a I would just add another entry to that array which includes some query params, and then include that entry in the |
noahtallen
left a comment
There was a problem hiding this comment.
Looks good to me, thank you!
|
Congratulations on your first merged pull request, @titusdmoore! We'd like to credit you for your contribution in the post announcing the next WordPress release, but we can't find a WordPress.org profile associated with your GitHub account. When you have a moment, visit the following URL and click "link your GitHub account" under "GitHub Username" to link your accounts: https://profiles.wordpress.org/me/profile/edit/ And if you don't have a WordPress.org account, you can create one on this page: https://login.wordpress.org/register Kudos! |
Add optional capture group to url regex in wp-env's .zip source logic to download .zip's from URLs with query parameters. Co-authored-by: Titus Moore <tmoore@edgewebware.com>
What?
Resolve issue where urls with query parameters won't work in wp-env using
wp-env.jsonto include plugins or themes.Why?
This can cause issues where adding plugins from third party developers can cause issues if they don't have their plugin added to the WordPress marketplace. My experience has been with Gravity Forms. Solves issue #43199
How?
Change the regex string that validates urls to include an optional capture group post
.zipthat will pass if the string has query parameters.Testing Instructions
wp-env.jsonfile with plugins attribute with url values that match old pattern[url]/zip-name.zipand new pattern[url]/zip-name.zip?authAttr={attrValue}wp-env startScreenshots or screencast