Skip to content

Commit 4789266

Browse files
More release post notes
1 parent af9a2b4 commit 4789266

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

_posts/2016-11-29-version-1.0.0.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,34 @@ title: Version 1.0.0 released
66

77
Woohoo!
88

9+
*What does v1.0.0 mean?*
10+
11+
12+
### Introducing `WP_CLI::runcommand()`
13+
14+
`WP_CLI::runcommand()` is the best way to run WP-CLI commands from within your WP-CLI command.
15+
16+
### Breaking changes: Uses return code 1 when batch operation partially fails.
17+
18+
Some commands support performing the same operation against multiple resources (e.g. updating two or more plugins wit `wp plugin update akismet hello`). Previously, if one of the operations failed (e.g. a plugin update failed to be downloaded), WP-CLI would display a warning, continue on, and exit with return code 0. Beginning in v1.0.0, WP-CLI uses return code 1 when one or more operations fails.
19+
20+
Affected commands include:
21+
22+
* `wp media (regenerate|import)`
23+
* `wp menu delete`
24+
* `wp menu item delete`
25+
* `wp plugin (install|activate|update|toggle|deactivate|uninstall|delete)`
26+
* `wp super-admin add`
27+
* `wp theme (install|update)`
28+
* `wp term delete`
29+
* `wp widget (delete|deactivate|reset)`
30+
31+
Use `WP_CLI\Utils\report_batch_operation_results()` in your custom WP-CLI commands to more easily support this behavior.
32+
33+
Relevant pull requests include: [#3584](https://github.com/wp-cli/wp-cli/pull/3584), [#3583](https://github.com/wp-cli/wp-cli/pull/3583), [#3582](https://github.com/wp-cli/wp-cli/pull/3582), [#3585](https://github.com/wp-cli/wp-cli/pull/3585), [#3586](https://github.com/wp-cli/wp-cli/pull/3586), [#3588](https://github.com/wp-cli/wp-cli/pull/3588)
34+
35+
### Everything else in 1.0.0
36+
937
New commands:
1038

1139
* `wp package update` - Update all installed WP-CLI packages to their latest version.

0 commit comments

Comments
 (0)