@@ -27,7 +27,7 @@ function _wp_http_get_object() {
2727}
2828
2929/**
30- * Retrieve the raw response from a safe HTTP request.
30+ * Retrieves the raw response from a safe HTTP request.
3131 *
3232 * This function is ideal when the HTTP request is being made to an arbitrary
3333 * URL. The URL, and every URL it redirects to, are validated with wp_http_validate_url()
@@ -53,7 +53,7 @@ function wp_safe_remote_request( $url, $args = array() ) {
5353}
5454
5555/**
56- * Retrieve the raw response from a safe HTTP request using the GET method.
56+ * Retrieves the raw response from a safe HTTP request using the GET method.
5757 *
5858 * This function is ideal when the HTTP request is being made to an arbitrary
5959 * URL. The URL, and every URL it redirects to, are validated with wp_http_validate_url()
@@ -79,7 +79,7 @@ function wp_safe_remote_get( $url, $args = array() ) {
7979}
8080
8181/**
82- * Retrieve the raw response from a safe HTTP request using the POST method.
82+ * Retrieves the raw response from a safe HTTP request using the POST method.
8383 *
8484 * This function is ideal when the HTTP request is being made to an arbitrary
8585 * URL. The URL, and every URL it redirects to, are validated with wp_http_validate_url()
@@ -105,7 +105,7 @@ function wp_safe_remote_post( $url, $args = array() ) {
105105}
106106
107107/**
108- * Retrieve the raw response from a safe HTTP request using the HEAD method.
108+ * Retrieves the raw response from a safe HTTP request using the HEAD method.
109109 *
110110 * This function is ideal when the HTTP request is being made to an arbitrary
111111 * URL. The URL, and every URL it redirects to, are validated with wp_http_validate_url()
@@ -221,7 +221,7 @@ function wp_remote_head( $url, $args = array() ) {
221221}
222222
223223/**
224- * Retrieve only the headers from the raw response.
224+ * Retrieves only the headers from the raw response.
225225 *
226226 * @since 2.7.0
227227 * @since 4.6.0 Return value changed from an array to an WpOrg\Requests\Utility\CaseInsensitiveDictionary instance.
@@ -241,7 +241,7 @@ function wp_remote_retrieve_headers( $response ) {
241241}
242242
243243/**
244- * Retrieve a single header by name from the raw response.
244+ * Retrieves a single header by name from the raw response.
245245 *
246246 * @since 2.7.0
247247 *
@@ -263,7 +263,7 @@ function wp_remote_retrieve_header( $response, $header ) {
263263}
264264
265265/**
266- * Retrieve only the response code from the raw response.
266+ * Retrieves only the response code from the raw response.
267267 *
268268 * Will return an empty string if incorrect parameter value is given.
269269 *
@@ -281,7 +281,7 @@ function wp_remote_retrieve_response_code( $response ) {
281281}
282282
283283/**
284- * Retrieve only the response message from the raw response.
284+ * Retrieves only the response message from the raw response.
285285 *
286286 * Will return an empty string if incorrect parameter value is given.
287287 *
@@ -299,7 +299,7 @@ function wp_remote_retrieve_response_message( $response ) {
299299}
300300
301301/**
302- * Retrieve only the body from the raw response.
302+ * Retrieves only the body from the raw response.
303303 *
304304 * @since 2.7.0
305305 *
@@ -315,7 +315,7 @@ function wp_remote_retrieve_body( $response ) {
315315}
316316
317317/**
318- * Retrieve only the cookies from the raw response.
318+ * Retrieves only the cookies from the raw response.
319319 *
320320 * @since 4.4.0
321321 *
@@ -332,7 +332,7 @@ function wp_remote_retrieve_cookies( $response ) {
332332}
333333
334334/**
335- * Retrieve a single cookie by name from the raw response.
335+ * Retrieves a single cookie by name from the raw response.
336336 *
337337 * @since 4.4.0
338338 *
@@ -358,7 +358,7 @@ function wp_remote_retrieve_cookie( $response, $name ) {
358358}
359359
360360/**
361- * Retrieve a single cookie's value by name from the raw response.
361+ * Retrieves a single cookie's value by name from the raw response.
362362 *
363363 * @since 4.4.0
364364 *
@@ -411,7 +411,7 @@ function wp_http_supports( $capabilities = array(), $url = null ) {
411411}
412412
413413/**
414- * Get the HTTP Origin of the current request.
414+ * Gets the HTTP Origin of the current request.
415415 *
416416 * @since 3.4.0
417417 *
@@ -424,7 +424,7 @@ function get_http_origin() {
424424 }
425425
426426 /**
427- * Change the origin of an HTTP request.
427+ * Changes the origin of an HTTP request.
428428 *
429429 * @since 3.4.0
430430 *
@@ -434,7 +434,7 @@ function get_http_origin() {
434434}
435435
436436/**
437- * Retrieve list of allowed HTTP origins.
437+ * Retrieves list of allowed HTTP origins.
438438 *
439439 * @since 3.4.0
440440 *
@@ -455,7 +455,7 @@ function get_allowed_http_origins() {
455455 );
456456
457457 /**
458- * Change the origin types allowed for HTTP requests.
458+ * Changes the origin types allowed for HTTP requests.
459459 *
460460 * @since 3.4.0
461461 *
@@ -491,7 +491,7 @@ function is_allowed_http_origin( $origin = null ) {
491491 }
492492
493493 /**
494- * Change the allowed HTTP origin result.
494+ * Changes the allowed HTTP origin result.
495495 *
496496 * @since 3.4.0
497497 *
@@ -502,7 +502,7 @@ function is_allowed_http_origin( $origin = null ) {
502502}
503503
504504/**
505- * Send Access-Control-Allow-Origin and related headers if the current request
505+ * Sends Access-Control-Allow-Origin and related headers if the current request
506506 * is from an allowed origin.
507507 *
508508 * If the request is an OPTIONS request, the script exits with either access
@@ -535,7 +535,7 @@ function send_origin_headers() {
535535}
536536
537537/**
538- * Validate a URL for safe use in the HTTP API.
538+ * Validates a URL for safe use in the HTTP API.
539539 *
540540 * Examples of URLs that are considered unsafe:
541541 *
@@ -599,7 +599,7 @@ function wp_http_validate_url( $url ) {
599599 ) {
600600 // If host appears local, reject unless specifically allowed.
601601 /**
602- * Check if HTTP request is external or not.
602+ * Checks if HTTP request is external or not.
603603 *
604604 * Allows to change and allow external requests for the HTTP request.
605605 *
@@ -646,7 +646,7 @@ function wp_http_validate_url( $url ) {
646646}
647647
648648/**
649- * Mark allowed redirect hosts safe for HTTP requests as well.
649+ * Marks allowed redirect hosts safe for HTTP requests as well.
650650 *
651651 * Attached to the {@see 'http_request_host_is_external'} filter.
652652 *
@@ -747,7 +747,7 @@ function wp_parse_url( $url, $component = -1 ) {
747747}
748748
749749/**
750- * Retrieve a specific component from a parsed URL array.
750+ * Retrieves a specific component from a parsed URL array.
751751 *
752752 * @internal
753753 *
@@ -779,7 +779,7 @@ function _get_component_from_parsed_url_array( $url_parts, $component = -1 ) {
779779}
780780
781781/**
782- * Translate a PHP_URL_* constant to the named array keys PHP uses.
782+ * Translates a PHP_URL_* constant to the named array keys PHP uses.
783783 *
784784 * @internal
785785 *
0 commit comments