WordPress.org

Make WordPress Core

Ticket #20142: 20142.diff

File 20142.diff, 398 bytes (added by ericmann, 4 years ago)

Add wp_http_accept_encoding filter.

  • wp-includes/class-http.php

     
    16891689 
    16901690                if ( function_exists( 'gzdecode' ) ) 
    16911691                        $type[] = 'gzip;q=0.5'; 
     1692                         
     1693                $type = apply_filters( 'wp_http_accept_encoding', $type ); 
    16921694 
    16931695                return implode(', ', $type); 
    16941696        }