Skip to content

Commit 85b8fb8

Browse files
authored
Merge pull request #476 from wp-cli/fix/update-handbook-script
2 parents 220c43b + d742f6d commit 85b8fb8

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

bin/command.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ private static function update_commands_data( $command, &$commands_data, $full )
197197
}
198198
}
199199
if ( $filename ) {
200-
preg_match( '#wp-cli-dev/([^/]+)#', $filename, $matches );
200+
preg_match( '#(?:vendor/wp-cli/|wp-cli-dev/)([^/]+)#', $filename, $matches );
201201
if ( ! empty( $matches[1] ) ) {
202202
$repo_url = 'https://github.com/wp-cli/' . $matches[1];
203203
}

bin/handbook-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"parent": null
4343
},
4444
"contributor-day": {
45-
"title": "WordCamp Contributor Day",
45+
"title": "WP-CLI Hack Day",
4646
"slug": "contributor-day",
4747
"markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/contributor-day.md",
4848
"parent": null

commands/dist-archive.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ options:
4141
\---
4242

4343
[\--filename-format=<filename-format>]
44-
: Use a custom format for archive filename. Defaults to '{name}.{version}'. This is ignored if a custom filename is provided or version does not exist.
44+
: Use a custom format for archive filename. Available substitutions: {name}, {version}. This is ignored if the <target> parameter is provided or the version cannot be determined.
45+
\---
46+
default: "{name}.{version}"
47+
\---
4548

4649
### GLOBAL PARAMETERS
4750

internal-api/wp-cli-utils-http-request.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Make a HTTP request to a remote URL.
1111
<div>
1212
<strong>$method</strong> (string) HTTP method (GET, POST, DELETE, etc.).<br />
1313
<strong>$url</strong> (string) URL to make the HTTP request to.<br />
14+
<strong>$data</strong> (array|null) Data to send either as a query string for GET/HEAD requests,<br />
1415
<strong>$headers</strong> (array) Add specific headers to the request.<br />
1516
<strong>$options</strong> (array) {<br /> Optional. An associative array of additional request options.<br /> @type bool $halt_on_error Whether or not command execution should be halted on error. Default: true<br /> @type bool|string $verify A boolean to use enable/disable SSL verification<br /> or string absolute path to CA cert to use.<br /> Defaults to detected CA cert bundled with the Requests library.<br /> @type bool $insecure Whether to retry automatically without certificate validation.<br />}<br />
1617
<strong>@return</strong> (object) <br />
@@ -31,6 +32,7 @@ if ( 20 != substr( $md5_response->status_code, 0, 2 ) ) {
3132
WP_CLI::error( "Couldn't access md5 hash for release (HTTP code {$response->status_code})" );
3233
}
3334
```
35+
or in the body for POST requests.
3436

3537

3638
*Internal API documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.*

0 commit comments

Comments
 (0)