Conversation
Add PHP 8 as an allowed PHP version
…sers Use proper `WP_User_Query` for fetching users
Adapt VERSION from 2.5.1-alpha to 2.6.0-alpha
…ency Force the use of Mustache 2.14.1 security fix
|
@rebeccahum Thanks for introducing a PR! I'm not yet sure what specific problem this is meant to solve. For individual call, you can already provide a custom array of values to adapt the behavior. Adding a filter like this would only make sense if you want to modify the behavior of all calls, or calls outside of your direct control. I think this would likely introduce many bugs, as some calls might rely on the fact that the defaults are not filterable yet and would only override the values that need changing. If other values changed as well in this unexpected way, it might cause these calls to break. Can you tell me a bit more about the use case you had in mind? |
|
@schlessera Thanks for taking a look. The specific use case for this would be to set the |
|
Which particular error condition is being triggered in that case? I think it might be safer to add an opt-in mechanism instead to have a This would not change any existing behavior unless it was already broken in the first place. I'm thinking about setting an environment variable that lets you opt in to this mechanism, like Do you think that would solve your use case? |
|
@schlessera When |
|
Proceeding with #5594 for this repository. I've captured this PR to https://gist.github.com/danielbachhuber/b45248df9e02eddb297935b0c6157eb1 in case this PR is auto-closed or broken in some way. |
314a242 to
1e9ebdf
Compare
It would be nice to be able to change the
$defaultsset for$optionsinWP_CLI::runcommand():wp-cli/php/class-wp-cli.php
Lines 1291 to 1296 in 0c427c5