Make WordPress Core

Timestamp:
12/16/2020 12:49:32 AM (4 years ago)
Author:
iandunn
Message:

Feed: Merge multiple header values to avoid fatal error.

When SimplePie parses HTTP headers, it combines multiple values for the same header into a comma-separated string. WP_SimplePie_File overrides the parsing, but was leaving them as an array instead.

That lead to a fatal error in PHP 8, because other parts of the codebase ended up passing an array to a function that expected a string.

Props david.binda, litemotiv, inc2734, NicolasKulka, hellofromTonya, mbabker, skithund, SergeyBiryukov, desrosj, timothyblynjacobs.
Fixes #51056. See #51956.

Location:
trunk/tests/phpunit/data/feed
Files:
2 added

Note: See TracChangeset for help on using the changeset viewer.