Changeset 19094
- Timestamp:
- 10/31/2011 07:38:46 PM (13 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 5 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 } -
trunk/wp-includes/class-wp.php
r19017 r19094 573 573 * @return string 574 574 */ 575 function apply($subject, $matches) {575 public static function apply($subject, $matches) { 576 576 $oSelf = new WP_MatchesMapRegex($subject, $matches); 577 577 return $oSelf->output; -
trunk/wp-includes/general-template.php
r19033 r19094 1622 1622 1623 1623 if ( is_single() || is_page() ) { 1624 $post = &get_post( $id = 0 ); 1624 $id = 0; 1625 $post = &get_post( $id ); 1625 1626 1626 1627 if ( comments_open() || pings_open() || $post->comment_count > 0 ) { -
trunk/wp-includes/ms-load.php
r18604 r19094 135 135 function wpmu_current_site() { 136 136 global $wpdb, $current_site, $domain, $path, $sites, $cookie_domain; 137 138 if ( empty( $current_site ) ) 139 $current_site = new stdClass; 140 137 141 if ( defined( 'DOMAIN_CURRENT_SITE' ) && defined( 'PATH_CURRENT_SITE' ) ) { 138 142 $current_site->id = defined( 'SITE_ID_CURRENT_SITE' ) ? SITE_ID_CURRENT_SITE : 1; -
trunk/wp-includes/post.php
r19075 r19094 4028 4028 $icon_files = array(); 4029 4029 while ( $dirs ) { 4030 $dir = array_shift($keys = array_keys($dirs)); 4030 $keys = array_keys( $dirs ); 4031 $dir = array_shift( $keys ); 4031 4032 $uri = array_shift($dirs); 4032 4033 if ( $dh = opendir($dir) ) {
Note: See TracChangeset
for help on using the changeset viewer.