Changeset 46424 for trunk/src/wp-includes/http.php
- Timestamp:
- 10/07/2019 07:06:41 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/http.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/http.php
r45611 r46424 155 155 156 156 /** 157 * Retrieve the raw response from the HTTP request using the GET method.157 * Performs an HTTP request using the GET method and returns its response. 158 158 * 159 159 * @since 2.7.0 … … 172 172 173 173 /** 174 * Retrieve the raw response from the HTTP request using the POST method.174 * Performs an HTTP request using the POST method and returns its response. 175 175 * 176 176 * @since 2.7.0 … … 189 189 190 190 /** 191 * Retrieve the raw response from the HTTP request using the HEAD method.191 * Performs an HTTP request using the HEAD method and returns its response. 192 192 * 193 193 * @since 2.7.0 … … 418 418 * @since 3.4.0 419 419 * 420 * @return arrayArray of origin URLs.420 * @return string[] Array of origin URLs. 421 421 */ 422 422 function get_allowed_http_origins() { … … 439 439 * @since 3.4.0 440 440 * 441 * @param array $allowed_origins { 442 * Default allowed HTTP origins. 443 * @type string Non-secure URL for admin origin. 444 * @type string Secure URL for admin origin. 445 * @type string Non-secure URL for home origin. 446 * @type string Secure URL for home origin. 441 * @param string[] $allowed_origins { 442 * Array of default allowed HTTP origins. 443 * 444 * @type string $0 Non-secure URL for admin origin. 445 * @type string $1 Secure URL for admin origin. 446 * @type string $2 Non-secure URL for home origin. 447 * @type string $3 Secure URL for home origin. 447 448 * } 448 449 */ … … 518 519 * @since 3.5.2 519 520 * 520 * @param string $url 521 * @param string $url Request URL. 521 522 * @return false|string URL or false on failure. 522 523 */ … … 573 574 * @since 3.6.0 574 575 * 575 * @param bool falseWhether HTTP request is external or not.576 * @param string $host IP of the requested host.577 * @param string $url URL of the requested host.576 * @param bool $external Whether HTTP request is external or not. 577 * @param string $host Host name of the requested URL. 578 * @param string $url Requested URL. 578 579 */ 579 580 if ( ! apply_filters( 'http_request_host_is_external', false, $host, $url ) ) { … … 716 717 * 717 718 * @param array|false $url_parts The parsed URL. Can be false if the URL failed to parse. 718 * @param int $component The specific component to retrieve. Use one of the PHP719 * predefined constants to specify which one.720 * Defaults to -1 (= return all parts as an array).719 * @param int $component The specific component to retrieve. Use one of the PHP 720 * predefined constants to specify which one. 721 * Defaults to -1 (= return all parts as an array). 721 722 * @return mixed False on parse failure; Array of URL components on success; 722 723 * When a specific component has been requested: null if the component … … 748 749 * 749 750 * @param int $constant PHP_URL_* constant. 750 * @return string| boolThe named key or false.751 * @return string|false The named key or false. 751 752 */ 752 753 function _wp_translate_php_url_constant_to_key( $constant ) {
Note: See TracChangeset
for help on using the changeset viewer.