WordPress.org

Make WordPress Core

Ticket #19922: 19922.2.patch

File 19922.2.patch, 466 bytes (added by dllh, 3 years ago)

apply_filters to let plugin authors handle implementation

  • wp-includes/class-http.php

     
    419419                                $cookies_header .= $cookie->getHeaderValue() . '; '; 
    420420                        } 
    421421                        $cookies_header = substr( $cookies_header, 0, -2 ); 
     422                        $cookies_header = apply_filters( 'cookies_header', $cookies_header ); 
    422423                        $r['headers']['cookie'] = $cookies_header; 
    423424                } 
    424425        }