Skip to content

Commit

Permalink
Merge pull request #476 from wp-cli/fix/update-handbook-script
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera authored Dec 8, 2023
2 parents 220c43b + d742f6d commit 85b8fb8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/command.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ private static function update_commands_data( $command, &$commands_data, $full )
}
}
if ( $filename ) {
preg_match( '#wp-cli-dev/([^/]+)#', $filename, $matches );
preg_match( '#(?:vendor/wp-cli/|wp-cli-dev/)([^/]+)#', $filename, $matches );
if ( ! empty( $matches[1] ) ) {
$repo_url = 'https://github.com/wp-cli/' . $matches[1];
}
Expand Down
2 changes: 1 addition & 1 deletion bin/handbook-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"parent": null
},
"contributor-day": {
"title": "WordCamp Contributor Day",
"title": "WP-CLI Hack Day",
"slug": "contributor-day",
"markdown_source": "https:\/\/github.com\/wp-cli\/handbook\/blob\/main\/contributor-day.md",
"parent": null
Expand Down
5 changes: 4 additions & 1 deletion commands/dist-archive.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ options:
\---

[\--filename-format=<filename-format>]
: 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.
: 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.
\---
default: "{name}.{version}"
\---

### GLOBAL PARAMETERS

Expand Down
2 changes: 2 additions & 0 deletions internal-api/wp-cli-utils-http-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Make a HTTP request to a remote URL.
<div>
<strong>$method</strong> (string) HTTP method (GET, POST, DELETE, etc.).<br />
<strong>$url</strong> (string) URL to make the HTTP request to.<br />
<strong>$data</strong> (array|null) Data to send either as a query string for GET/HEAD requests,<br />
<strong>$headers</strong> (array) Add specific headers to the request.<br />
<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 />
<strong>@return</strong> (object) <br />
Expand All @@ -31,6 +32,7 @@ if ( 20 != substr( $md5_response->status_code, 0, 2 ) ) {
WP_CLI::error( "Couldn't access md5 hash for release (HTTP code {$response->status_code})" );
}
```
or in the body for POST requests.


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

0 comments on commit 85b8fb8

Please sign in to comment.