A new release is upon us!
We’re excited to bring you WP-CLI v1.5.1, an intermediary bugfix release with a total of 52 merged pull requests since v1.5.0 in January 2018.
About this release
This is a bugfix release, which means that you shouldn’t expect major feature enhancements. We’re working hard on v2.0.0 which is planned for the summer, and all new features will have to wait for that big one.
Notable features
Yes, I just said not to expect any new features. However, a small number of features managed to sneak into this release nevertheless.
Edit your config files with ease
The config command now has a new config edit function that opens the wp-config.php file in your favorite editor for easy changes. You can configure the editor to be used through the EDITOR environment variable [#48].
Get better insight into your capabilities
Although WordPress is able to have a capability be set to false, to effectively mean an explicit “deny” of that capability, WP-CLI did not yet show that distinction. It only let you know that the capability was defined, but not whether it was negated, giving the false impression of it being “allowed” instead.
This has now changed, and you can get a complete picture of how the capabilities are set by adding the --show-grant to the cap list command [#19].
Breaking change: Note that the default behavior of cap list has slightly changed because of that. Whereas the previous version showed a capability set to false alongside the normal capabilities, a simple cap list without the new --show-grant flag will now hide the capabilities that are set to false, effectively returning only the capabilities that are actually “granted”.
Bugs that were fixed
Framework
- Show help text even when
proc_(open|close)aren’t available [#4758] - Normalize Mac
taroutput [#4674] - Tests should not depend on external commands [#4673]
- Fix
phpunitextractor, glob, behat tests [#4672] - Move
phpunitPHP directive tests to behat [#4675] - Only run
phpcsagainst PHP files on pre-commit hook [#4755]
Commands
plugin verify-checksumsconfig- Escape
$nand\\nsequences inpreg_replace()values [wp-cli-transformer #3]
- Escape
packagescaffold blockscaffold plugin- Exclude
tests/test-sample.phpvia thephpunit.xml.distfile [#134]
- Exclude
scaffold plugin-tests | theme-testssearch-replace
Contributors to this release (15 total)
danielbachhuber, emirpprime, ericgopak, felicianotech, gitlost, johnbillion, kshaner, lalaithan, pdaalder, ptrkcsk, salcode, schlessera, stevegrunwell, thrijith, torounit