Skip to content

Commit

Permalink
Merge pull request #333 from wp-cli/update-release-2-3-0
Browse files Browse the repository at this point in the history
Update handbook for release v2.3.0
  • Loading branch information
schlessera authored Aug 13, 2019
2 parents 0154eb4 + fcca0a7 commit 21f943b
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 5 deletions.
8 changes: 8 additions & 0 deletions bin/commands-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,14 @@
"markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/master\/commands\/maintenance-mode\/status.md",
"repo_url": "https:\/\/github.com\/wp-cli\/maintenance-mode-command"
},
"media\/fix-orientation": {
"title": "media fix-orientation",
"slug": "fix-orientation",
"cmd_path": "media\/fix-orientation",
"parent": "media",
"markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/master\/commands\/media\/fix-orientation.md",
"repo_url": "https:\/\/github.com\/wp-cli\/media-command"
},
"media\/image-size": {
"title": "media image-size",
"slug": "image-size",
Expand Down
50 changes: 50 additions & 0 deletions commands/media/fix-orientation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# wp media fix-orientation

Fix image orientation for one or more attachments.

### OPTIONS

[<attachment-id>...]
: One or more IDs of the attachments to regenerate.

[\--dry-run]
: Check images needing orientation without performing the operation.

### EXAMPLES

# Fix orientation for all images.
$ wp media fix-orientation
1/3 Fixing orientation for "Landscape_4" (ID 62).
2/3 Fixing orientation for "Landscape_3" (ID 61).
3/3 Fixing orientation for "Landscape_2" (ID 60).
Success: Fixed 3 of 3 images.

# Fix orientation dry run.
$ wp media fix-orientation 63 -dry run
1/1 "Portrait_6" (ID 63) will be affected.
Success: 1 of 1 image will be affected.

# Fix orientation for specific images.
$ wp media fix-orientation 63
1/1 Fixing orientation for "Portrait_6" (ID 63).
Success: Fixed 1 of 1 images.

### GLOBAL PARAMETERS

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.

| **Argument** | **Description** |
|:----------------|:-----------------------------|
| `--path=<path>` | Path to the WordPress files. |
| `--url=<url>` | Pretend request came from given URL. In multisite, this argument is how the target site is specified. |
| `--ssh=[<scheme>:][<user>@]<host\|container>[:<port>][<path>]` | Perform operation against a remote server over SSH (or a container using scheme of "docker", "docker-compose", "vagrant"). |
| `--http=<http>` | Perform operation against a remote WordPress installation over HTTP. |
| `--user=<id\|login\|email>` | Set the WordPress user. |
| `--skip-plugins[=<plugins>]` | Skip loading all plugins, or a comma-separated list of plugins. Note: mu-plugins are still loaded. |
| `--skip-themes[=<themes>]` | Skip loading all themes, or a comma-separated list of themes. |
| `--skip-packages` | Skip loading all installed packages. |
| `--require=<path>` | Load PHP file before running the command (may be used more than once). |
| `--[no-]color` | Whether to colorize the output. |
| `--debug[=<group>]` | Show all PHP errors and add verbosity to WP-CLI output. Built-in groups include: bootstrap, commandfactory, and help. |
| `--prompt[=<assoc>]` | Prompt the user to enter values for all command arguments, or a subset specified as comma-separated values. |
| `--quiet` | Suppress informational messages. |
2 changes: 1 addition & 1 deletion commands/media/import.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Creates attachments from local files or URLs.
: "Description" field (post content) of attachment post.

[\--skip-copy]
: If set, media files (local only) are imported to the library but not moved on disk.
: If set, media files (local only) are imported to the library but not moved on disk. File names will not be run through wp_unique_filename() with this set.

[\--preserve-filetime]
: Use the file modified time as the post published &amp; modified dates. Remote files will always use the current time.
Expand Down
2 changes: 1 addition & 1 deletion commands/search-replace.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Search/replace intelligently handles PHP serialized data, and does not change pr
: Define number of rows in single INSERT statement when doing SQL export. You might want to change this depending on your database configuration (e.g. if you need to do fewer queries). Default: 50

[\--skip-tables=&lt;tables&gt;]
: Do not perform the replacement on specific tables. Use commas to specify multiple tables.
: Do not perform the replacement on specific tables. Use commas to specify multiple tables. Wildcards are supported, e.g. `'wp_*options'` or `'wp_post*'`.

[\--skip-columns=&lt;columns&gt;]
: Do not perform the replacement on specific columns. Use commas to specify multiple columns.
Expand Down
2 changes: 1 addition & 1 deletion commands/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ default: 8080
# Run on port 80 (for multisite)
$ wp server --host=localhost.localdomain --port=80
PHP 5.6.9 Development Server started at Tue May 24 01:30:06 2016
Listening on http://localhost1.localdomain1:8080
Listening on http://localhost1.localdomain1:80
Document root is /
Press Ctrl-C to quit.

Expand Down
2 changes: 1 addition & 1 deletion internal-api/wp-cli-launch-self.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Run a WP-CLI command in a new process reusing the current runtime arguments.
<strong>$exit_on_error</strong> (bool) Whether to exit if the command returns an elevated return code.<br />
<strong>$return_detailed</strong> (bool) Whether to return an exit status (default) or detailed execution results.<br />
<strong>$runtime_args</strong> (array) Override one or more global args (path,url,user,allow-root)<br />
<strong>@return</strong> (int|ProcessRun) command exit status, or a ProcessRun instance<br />
<strong>@return</strong> (int|\WP_CLI\ProcessRun) command exit status, or a ProcessRun instance<br />
</div>


Expand Down
2 changes: 1 addition & 1 deletion internal-api/wp-cli-launch.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Launch an arbitrary external process that takes over I/O.
<strong>$command</strong> (string) External process to launch.<br />
<strong>$exit_on_error</strong> (boolean) Whether to exit if the command returns an elevated return code.<br />
<strong>$return_detailed</strong> (boolean) Whether to return an exit status (default) or detailed execution results.<br />
<strong>@return</strong> (int|ProcessRun) command exit status, or a ProcessRun object for full details.<br />
<strong>@return</strong> (int|\WP_CLI\ProcessRun) command exit status, or a ProcessRun object for full details.<br />
</div>


Expand Down

0 comments on commit 21f943b

Please sign in to comment.