From 6449cc797047232843b121d321388b05aac474bc Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 14 May 2018 15:22:45 +0000 Subject: [PATCH] Docs: Add missing HTTP methods to the list of those supported. See #42505 git-svn-id: https://develop.svn.wordpress.org/trunk@43258 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-http.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/class-http.php b/src/wp-includes/class-http.php index edfcd11cbe..4d15b737cf 100644 --- a/src/wp-includes/class-http.php +++ b/src/wp-includes/class-http.php @@ -105,7 +105,8 @@ class WP_Http { * @param string|array $args { * Optional. Array or string of HTTP request arguments. * - * @type string $method Request method. Accepts 'GET', 'POST', 'HEAD', or 'PUT'. + * @type string $method Request method. Accepts 'GET', 'POST', 'HEAD', 'PUT', 'DELETE', + * 'TRACE', 'OPTIONS', or 'PATCH'. * Some transports technically allow others, but should not be * assumed. Default 'GET'. * @type int $timeout How long the connection should stay open in seconds. Default 5.