Changeset 38459 for trunk/src/wp-includes/class-http.php
- Timestamp:
- 08/31/2016 05:48:49 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-http.php
r38430 r38459 102 102 * @since 2.7.0 103 103 * 104 * @global string $wp_version105 *106 104 * @param string $url The request URL. 107 105 * @param string|array $args { … … 117 115 * Default '1.0'. 118 116 * @type string $user-agent User-agent value sent. 119 * Default WordPress/' . $wp_version. '; ' . get_bloginfo( 'url' ).117 * Default WordPress/' . get_bloginfo( 'version' ) . '; ' . get_bloginfo( 'url' ). 120 118 * @type bool $reject_unsafe_urls Whether to pass URLs through wp_http_validate_url(). 121 119 * Default false. … … 149 147 */ 150 148 public function request( $url, $args = array() ) { 151 global $wp_version;152 153 149 $defaults = array( 154 150 'method' => 'GET', … … 186 182 * @param string $user_agent WordPress user agent string. 187 183 */ 188 'user-agent' => apply_filters( 'http_headers_useragent', 'WordPress/' . $wp_version. '; ' . get_bloginfo( 'url' ) ),184 'user-agent' => apply_filters( 'http_headers_useragent', 'WordPress/' . get_bloginfo( 'version' ) . '; ' . get_bloginfo( 'url' ) ), 189 185 /** 190 186 * Filters whether to pass URLs through wp_http_validate_url() in an HTTP request.
Note: See TracChangeset
for help on using the changeset viewer.