Changeset 54157 for trunk/src/wp-includes/http.php
- Timestamp:
- 09/14/2022 01:06:53 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/http.php
r53770 r54157 206 206 * 207 207 * @param array|WP_Error $response HTTP response. 208 * @return array|\Requests_Utility_CaseInsensitiveDictionary The headers of the response. Empty array if incorrect parameter given. 208 * @return \Requests_Utility_CaseInsensitiveDictionary|array The headers of the response, or empty array 209 * if incorrect parameter given. 209 210 */ 210 211 function wp_remote_retrieve_headers( $response ) { … … 246 247 * 247 248 * @param array|WP_Error $response HTTP response. 248 * @return int|string The response code as an integer. Empty string onincorrect parameter given.249 * @return int|string The response code as an integer. Empty string if incorrect parameter given. 249 250 */ 250 251 function wp_remote_retrieve_response_code( $response ) { … … 264 265 * 265 266 * @param array|WP_Error $response HTTP response. 266 * @return string The response message. Empty string onincorrect parameter given.267 * @return string The response message. Empty string if incorrect parameter given. 267 268 */ 268 269 function wp_remote_retrieve_response_message( $response ) { … … 296 297 * 297 298 * @param array|WP_Error $response HTTP response. 298 * @return WP_Http_Cookie[] An array of `WP_Http_Cookie` objects from the response. Empty array if there are none, or the response is a WP_Error. 299 * @return WP_Http_Cookie[] An array of `WP_Http_Cookie` objects from the response. 300 * Empty array if there are none, or the response is a WP_Error. 299 301 */ 300 302 function wp_remote_retrieve_cookies( $response ) { … … 313 315 * @param array|WP_Error $response HTTP response. 314 316 * @param string $name The name of the cookie to retrieve. 315 * @return WP_Http_Cookie|string The `WP_Http_Cookie` object. Empty string if the cookie isn't present in the response. 317 * @return WP_Http_Cookie|string The `WP_Http_Cookie` object, or empty string 318 * if the cookie is not present in the response. 316 319 */ 317 320 function wp_remote_retrieve_cookie( $response, $name ) { … … 338 341 * @param array|WP_Error $response HTTP response. 339 342 * @param string $name The name of the cookie to retrieve. 340 * @return string The value of the cookie. Empty string if the cookie isn't present in the response. 343 * @return string The value of the cookie, or empty string 344 * if the cookie is not present in the response. 341 345 */ 342 346 function wp_remote_retrieve_cookie_value( $response, $name ) {
Note: See TracChangeset
for help on using the changeset viewer.