Title: v1.5.1 – WP-CLI – WordPress.org

---

#  Tag Archives: v1.5.1

 [  ](https://profiles.wordpress.org/schlessera/) [Alain Schlesser](https://profiles.wordpress.org/schlessera/)
9:59 am _on_ April 21, 2018     
Tags: [release ( 21 )](https://make.wordpress.org/cli/tag/release/),
v1.5.1   

# 󠀁[Version 1.5.1 released](https://make.wordpress.org/cli/2018/04/21/version-1-5-1-released/)󠁿

A new release is upon us!

We’re excited to bring you WP-CLIWP-CLI WP-CLI is the Command Line Interface for
WordPress, used to do administrative and development tasks in a programmatic way.
The project page is [http://wp-cli.org/](http://wp-cli.org/) [https://make.wordpress.org/cli/](https://make.wordpress.org/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](https://github.com/wp-cli/config-command/pull/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](https://github.com/wp-cli/role-command/pull/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]](https://github.com/wp-cli/wp-cli/pull/4758)
 * Normalize Mac `tar` output [[#4674]](https://github.com/wp-cli/wp-cli/pull/4674)
 * Tests should not depend on external commands [[#4673]](https://github.com/wp-cli/wp-cli/issues/4673)
 * Fix `phpunit` extractor, glob, behat tests [[#4672]](https://github.com/wp-cli/wp-cli/pull/4672)
 * Move `phpunit` PHPPHP PHP (recursive acronym for PHP: Hypertext Preprocessor)
   is a widely-used open source general-purpose scripting language that is especially
   suited for web development and can be embedded into HTML. [https://www.php.net/manual/en/index.php](https://www.php.net/manual/en/index.php)
   directive tests to behat [[#4675]](https://github.com/wp-cli/wp-cli/pull/4675)
 * Only run `phpcs` against PHP files on pre-commit hook [[#4755]](https://github.com/wp-cli/wp-cli/pull/4755)

**Commands**

 * `plugin verify-checksums`
    - Make soft change detection more flexible [[#41](https://github.com/wp-cli/checksum-command/pull/41)]
    - Add backslash to the regex for matching Windows paths correctly [[#39](https://github.com/wp-cli/checksum-command/pull/39)]
 * `config`
    - Escape `$n` and `\\n` sequences in `preg_replace()` values [[wp-cli-transformer #3](https://github.com/wp-cli/wp-config-transformer/pull/3)]
 * `package`
    - Assume default package name if `composer.json` file cannot be retrieved [[#78](https://github.com/wp-cli/package-command/pull/78)]
    - Avoid using Composer CA bundle if in phar [[#72](https://github.com/wp-cli/package-command/issues/72)]
 * `scaffold block`
    - Fix theme-specific paths in scaffolded blocks [[#137](https://github.com/wp-cli/scaffold-command/pull/137)]
    - Modify `scaffold block` to create `index.js` [[#142](https://github.com/wp-cli/scaffold-command/pull/142)]
 * `scaffold plugin`
    - Exclude `tests/test-sample.php` via the `phpunit.xml.dist` file [[#134](https://github.com/wp-cli/scaffold-command/pull/134)]
 * `scaffold plugin-tests | theme-tests`
    - Fix WPCSWordPress Community Support A public benefit corporation and a subsidiary
      of the WordPress Foundation, [established](https://wordpressfoundation.org/news/2016/introducing-wordpress-community-support-a-public-benefit-subsidiary/)
      in 2016. in theme-tests generation [[#121](https://github.com/wp-cli/scaffold-command/pull/121)]
    - Use correct default `$WP_TESTS_DIR` on MacOS [[#131](https://github.com/wp-cli/scaffold-command/pull/131)]
    - Fix `sed -i` option on MacOS [[#132](https://github.com/wp-cli/scaffold-command/pull/132)]
    - Switch CircleCI template to CircleCI 2.0 [[#115](https://github.com/wp-cli/scaffold-command/pull/115)]
    - Add PHP 7.2 to CI templates [[#135](https://github.com/wp-cli/scaffold-command/pull/135)]
 * `search-replace`
    - Handle incomplete class (un)serialization gracefully [[#76](https://github.com/wp-cli/search-replace-command/pull/76)]
    - Handle PCRE errors gracefully [[#75](https://github.com/wp-cli/search-replace-command/pull/75)]
    - Remove “Site Not Found” message from multisiteMultisite Multisite is a WordPress
      feature which allows users to create a network of sites on a single WordPress
      installation. Available since WordPress version 3.0, Multisite is a continuation
      of WPMU or WordPress Multiuser project. WordPress MultiUser project was discontinued
      and its features were included into WordPress core. [Advanced Administration Handbook -> Create A Network.](https://developer.wordpress.org/advanced-administration/multisite/create-network/)
      usage [[#69](https://github.com/wp-cli/search-replace-command/pull/69)]

**Contributors to this release (15 total)**

[danielbachhuber](https://github.com/danielbachhuber), [emirpprime](https://github.com/emirpprime),
[ericgopak](https://github.com/ericgopak), [felicianotech](https://github.com/felicianotech),
[gitlost](https://github.com/gitlost), [johnbillion](https://github.com/johnbillion),
[kshaner](https://github.com/kshaner), [lalaithan](https://github.com/lalaithan),
[pdaalder](https://github.com/pdaalder), [ptrkcsk](https://github.com/ptrkcsk), 
[salcode](https://github.com/salcode), [schlessera](https://github.com/schlessera),
[stevegrunwell](https://github.com/stevegrunwell), [thrijith](https://github.com/thrijith),
[torounit](https://github.com/torounit)

[#release](https://make.wordpress.org/cli/tag/release/), [#v1-5-1](https://make.wordpress.org/cli/tag/v1-5-1/)

 * [Login to Reply](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fmake.wordpress.org%2Fcli%2F2018%2F04%2F21%2Fversion-1-5-1-released%2F%23respond&locale=en_US)

 [  ](https://profiles.wordpress.org/schlessera/) [Alain Schlesser](https://profiles.wordpress.org/schlessera/)
4:41 pm _on_ April 10, 2018     
Tags: v1.5.1   

# 󠀁[Upcoming bug-fix release 1.5.1](https://make.wordpress.org/cli/2018/04/10/upcoming-bug-fix-release-1-5-1/)󠁿

We’re planning a **bug-fix release v1.5.1** that is scheduled for **Friday, 20th
April, 2018**.

Here’s the list of bugs we’re planning to fix for this upcoming release:

 * Cannot install package from private repo [wp-cli/package-command#76](https://github.com/wp-cli/package-command/issues/76)
 * Placeholder escaping problem with `$[0-9]` present in values [wp-cli/wp-config-transformer#2](https://github.com/wp-cli/wp-config-transformer/issues/2)
 * String not found in serialized object [wp-cli/search-replace-command#68](https://github.com/wp-cli/search-replace-command/issues/68)
 * Fix potential endless loopLoop The Loop is PHP code used by WordPress to display
   posts. Using The Loop, WordPress processes each post to be displayed on the current
   page, and formats it according to how it matches specified criteria within The
   Loop tags. Any HTML or PHP code in the Loop will be processed on each post. [https://codex.wordpress.org/The_Loop](https://codex.wordpress.org/The_Loop)
   in `prompt()` [wp-cli/php-cli-tools#129](https://github.com/wp-cli/php-cli-tools/pull/129)
 * `wp cap list` output does not reflect grant [wp-cli/role-command#18](https://github.com/wp-cli/role-command/issues/18)
 * Soft changes need to be more flexible [wp-cli/checksum-command#34](https://github.com/wp-cli/checksum-command/issues/34)
 * `wp scaffold block` using `--theme` outputs the wrong code [wp-cli/scaffold-command#127](https://github.com/wp-cli/scaffold-command/issues/127)
 * Should check for PCRE error on `preg_replace()` [wp-cli/search-replace-command#65](https://github.com/wp-cli/search-replace-command/issues/65)

Given the tight deadline, this list is quite ambitious, and **we’d love to have 
some additional help to make this happen**. We’re glad about any contributions (
code or otherwise) to help us fix up this list as completely as possible.

UPDATE: You can follow the progression here: [https://github.com/wp-cli/wp-cli/issues/4766](https://github.com/wp-cli/wp-cli/issues/4766)

[#v1-5-1](https://make.wordpress.org/cli/tag/v1-5-1/)

 * [Login to Reply](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fmake.wordpress.org%2Fcli%2F2018%2F04%2F10%2Fupcoming-bug-fix-release-1-5-1%2F%23respond&locale=en_US)