diff --git a/bin/command.php b/bin/command.php index 6dc3e106..ce3affbd 100644 --- a/bin/command.php +++ b/bin/command.php @@ -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]; } diff --git a/bin/handbook-manifest.json b/bin/handbook-manifest.json index 928bd6ff..a4653349 100644 --- a/bin/handbook-manifest.json +++ b/bin/handbook-manifest.json @@ -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 diff --git a/commands/dist-archive.md b/commands/dist-archive.md index 61d1a098..7d5eeca4 100644 --- a/commands/dist-archive.md +++ b/commands/dist-archive.md @@ -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 diff --git a/internal-api/wp-cli-utils-http-request.md b/internal-api/wp-cli-utils-http-request.md index b6c19e8e..de5c1bb5 100644 --- a/internal-api/wp-cli-utils-http-request.md +++ b/internal-api/wp-cli-utils-http-request.md @@ -11,6 +11,7 @@ Make a HTTP request to a remote URL.
$method (string) HTTP method (GET, POST, DELETE, etc.).
$url (string) URL to make the HTTP request to.
+$data (array|null) Data to send either as a query string for GET/HEAD requests,
$headers (array) Add specific headers to the request.
$options (array) {
Optional. An associative array of additional request options.
@type bool $halt_on_error Whether or not command execution should be halted on error. Default: true
@type bool|string $verify A boolean to use enable/disable SSL verification
or string absolute path to CA cert to use.
Defaults to detected CA cert bundled with the Requests library.
@type bool $insecure Whether to retry automatically without certificate validation.
}
@return (object)
@@ -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.*