Make WordPress Core

Changeset 31683


Ignore:
Timestamp:
03/09/2015 02:21:04 AM (10 years ago)
Author:
wonderboymusic
Message:

self should be used for accessing local static members.

See #30799.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-http.php

    r31681 r31683  
    229229
    230230        if ( ! is_array( $r['headers'] ) ) {
    231             $processedHeaders = WP_Http::processHeaders( $r['headers'], $url );
     231            $processedHeaders = self::processHeaders( $r['headers'], $url );
    232232            $r['headers'] = $processedHeaders['headers'];
    233233        }
     
    248248
    249249        // Construct Cookie: header if any cookies are set.
    250         WP_Http::buildCookieHeader( $r );
     250        self::buildCookieHeader( $r );
    251251
    252252        // Avoid issues where mbstring.func_overload is enabled.
     
    21172117            return $decompressed;
    21182118
    2119         if ( false !== ( $decompressed = WP_Http_Encoding::compatible_gzinflate( $compressed ) ) )
     2119        if ( false !== ( $decompressed = self::compatible_gzinflate( $compressed ) ) )
    21202120            return $decompressed;
    21212121
     
    21952195    public static function accept_encoding( $url, $args ) {
    21962196        $type = array();
    2197         $compression_enabled = WP_Http_Encoding::is_available();
     2197        $compression_enabled = self::is_available();
    21982198
    21992199        if ( ! $args['decompress'] ) // Decompression specifically disabled.
Note: See TracChangeset for help on using the changeset viewer.