WordPress.org

Make WordPress Core

Ticket #19922: 19922.with-filter.diff

File 19922.with-filter.diff, 421 bytes (added by westi, 3 years ago)

Simple patch to remove the encoding but allow for a plugin to encode it if needed using a filter

  • class-http.php

     
    15401540                if ( empty( $this->name ) || empty( $this->value ) ) 
    15411541                        return ''; 
    15421542 
    1543                 return $this->name . '=' . urlencode( $this->value ); 
     1543                return $this->name . '=' . apply_filters( 'wp_http_cookie_value', $this->value, $this-name ); 
    15441544        } 
    15451545 
    15461546        /**