This commit is contained in:
Hanson.xyz Dev
2026-01-04 17:50:08 -06:00
parent 7e45ce0756
commit acc8ac87a0
4131 changed files with 232562 additions and 250244 deletions
+4
View File
@@ -75,6 +75,10 @@ class WP_SimplePie_File extends SimplePie\File {
} else {
$this->headers = wp_remote_retrieve_headers( $res );
if ( $this->headers instanceof \WpOrg\Requests\Utility\CaseInsensitiveDictionary ) {
$this->headers = $this->headers->getAll();
}
/*
* SimplePie expects multiple headers to be stored as a comma-separated string,
* but `wp_remote_retrieve_headers()` returns them as an array, so they need