-
Notifications
You must be signed in to change notification settings - Fork 58
Add --skip-locale-check flag to wp core download for locale fallback
#322
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -4,6 +4,7 @@ | |||
| use WP_CLI\Extractor; | ||||
| use WP_CLI\Iterators\Table as TableIterator; | ||||
| use WP_CLI\Utils; | ||||
| use WP_CLI\Path; | ||||
|
||||
| use WP_CLI\Path; |
Copilot
AI
Mar 20, 2026
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.
Path::trailingslashit() is used here, but this file previously relied on the Utils\trailingslashit() function. If WP_CLI\Path is not available (or doesn’t provide trailingslashit()), this will fatal at runtime. Please keep this consistent with the rest of the command by using the existing Utils\trailingslashit() helper (or confirm the correct Path helper import and API).
Copilot
AI
Mar 20, 2026
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.
Path::phar_safe() appears to replace the existing Utils\phar_safe_path() helper. If WP_CLI\Path/phar_safe() isn’t part of the supported WP-CLI API, this will break template resolution at runtime. Consider reverting to Utils\phar_safe_path() or updating to the correct, verified helper name/namespace.
Copilot
AI
Mar 20, 2026
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.
Same Path::trailingslashit() concern applies here: if WP_CLI\Path isn’t available (or doesn’t implement trailingslashit()), file cleanup will fatal. Using the existing Utils\trailingslashit() helper keeps this consistent with the rest of the codebase and avoids introducing an unverified dependency.
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.
This scenario expects a successful download, but it uses
When I try ...and doesn’t assert a zero exit code. To make the test reliably fail when the command fails, useWhen I run ...(or explicitly assertThen the return code should be 0).