Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bin/command.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ private static function gen_cmd_pages( $cmd, $parent = [], $verbose = false ) {
$docs = preg_replace( '/"/', '"', $docs );
$docs = preg_replace( '/wp> /', 'wp> ', $docs );
$docs = preg_replace( '/=>/', '=>', $docs );
$docs = preg_replace( '/ && /', ' && ', $docs );

$global_parameters = <<<EOT
These [global parameters](https://make.wordpress.org/cli/handbook/config/) have the same behavior across all commands and affect how WP-CLI interacts with WordPress.
Expand Down
2 changes: 1 addition & 1 deletion commands/package/path.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If you want to contribute to a package, this is a great way to jump to it.
/home/person/.wp-cli/packages/

# Change directory to package path
$ cd $(wp package path) &amp;&amp; pwd
$ cd $(wp package path) && pwd
/home/vagrant/.wp-cli/packages

### GLOBAL PARAMETERS
Expand Down
2 changes: 1 addition & 1 deletion commands/plugin/path.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gets the path to a plugin or to the plugin directory.

### EXAMPLES

$ cd $(wp plugin path) &amp;&amp; pwd
$ cd $(wp plugin path) && pwd
/var/www/wordpress/wp-content/plugins

### GLOBAL PARAMETERS
Expand Down
2 changes: 1 addition & 1 deletion commands/transient/delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ For a more complete explanation of the transient cache, including the network|si
Success: 2 transients deleted from the database.

# Delete all transients in a multsite.
$ wp transient delete --all --network &amp;&amp; wp site list --field=url | xargs -n1 -I % wp --url=% transient delete --all
$ wp transient delete --all --network && wp site list --field=url | xargs -n1 -I % wp --url=% transient delete --all

### GLOBAL PARAMETERS

Expand Down