Changeset 19094 for trunk/wp-includes/class-http.php
- Timestamp:
- 10/31/2011 07:38:46 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-http.php
r19054 r19094 347 347 * Then a numbered array is returned as the value of that header-key. 348 348 */ 349 function processHeaders($headers) {349 public static function processHeaders($headers) { 350 350 // split headers, one per array element 351 351 if ( is_string($headers) ) { … … 414 414 * @param array $r Full array of args passed into ::request() 415 415 */ 416 function buildCookieHeader( &$r ) {416 public static function buildCookieHeader( &$r ) { 417 417 if ( ! empty($r['cookies']) ) { 418 418 $cookies_header = ''; … … 757 757 * @return boolean False means this class can not be used, true means it can. 758 758 */ 759 function test( $args = array() ) {759 public static function test( $args = array() ) { 760 760 if ( ! function_exists( 'fsockopen' ) ) 761 761 return false; … … 940 940 * @return boolean False means this class can not be used, true means it can. 941 941 */ 942 function test( $args = array() ) {942 public static function test( $args = array() ) { 943 943 if ( ! function_exists( 'fopen' ) ) 944 944 return false; … … 1167 1167 * @return boolean False means this class can not be used, true means it can. 1168 1168 */ 1169 function test( $args = array() ) {1169 public static function test( $args = array() ) { 1170 1170 if ( ! function_exists( 'curl_init' ) || ! function_exists( 'curl_exec' ) ) 1171 1171 return false; … … 1581 1581 * @return string|bool False on failure. 1582 1582 */ 1583 function compress( $raw, $level = 9, $supports = null ) {1583 public static function compress( $raw, $level = 9, $supports = null ) { 1584 1584 return gzdeflate( $raw, $level ); 1585 1585 } … … 1599 1599 * @return string|bool False on failure. 1600 1600 */ 1601 function decompress( $compressed, $length = null ) {1601 public static function decompress( $compressed, $length = null ) { 1602 1602 1603 1603 if ( empty($compressed) ) … … 1643 1643 * @return string|bool False on failure. 1644 1644 */ 1645 function compatible_gzinflate($gzData) {1645 public static function compatible_gzinflate($gzData) { 1646 1646 1647 1647 // Compressed data might contain a full header, if so strip it for gzinflate() … … 1681 1681 * @return string Types of encoding to accept. 1682 1682 */ 1683 function accept_encoding() {1683 public static function accept_encoding() { 1684 1684 $type = array(); 1685 1685 if ( function_exists( 'gzinflate' ) ) … … 1702 1702 * @return string Content-Encoding string to send in the header. 1703 1703 */ 1704 function content_encoding() {1704 public static function content_encoding() { 1705 1705 return 'deflate'; 1706 1706 } … … 1714 1714 * @return bool 1715 1715 */ 1716 function should_decode($headers) {1716 public static function should_decode($headers) { 1717 1717 if ( is_array( $headers ) ) { 1718 1718 if ( array_key_exists('content-encoding', $headers) && ! empty( $headers['content-encoding'] ) ) … … 1736 1736 * @return bool 1737 1737 */ 1738 function is_available() {1738 public static function is_available() { 1739 1739 return ( function_exists('gzuncompress') || function_exists('gzdeflate') || function_exists('gzinflate') ); 1740 1740 }
Note: See TracChangeset
for help on using the changeset viewer.