[wp-trac] [WordPress Trac] #64136: PHP Deprecated: Fetching multiple feeds with single SimplePie instance is deprecated since SimplePie 1.9.0
WordPress Trac
noreply at wordpress.org
Wed Jan 28 22:42:26 UTC 2026
#64136: PHP Deprecated: Fetching multiple feeds with single SimplePie instance is
deprecated since SimplePie 1.9.0
---------------------------------------------+-----------------------------
Reporter: muryam | Owner: peterwilsoncc
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.9.1
Component: General | Version: 6.9
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: administration
---------------------------------------------+-----------------------------
Changes (by peterwilsoncc):
* owner: (none) => peterwilsoncc
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"61551" 61551]:
{{{
#!CommitTicketReference repository="" revision="61551"
Feeds: Fix backward compatibility of `fetch_feed()`.
In [https://github.com/simplepie/simplepie/pull/795
simplepie/simplepie#795] handling of multiple feed requests was
deprecated, triggering the message `Fetching multiple feeds with single
SimplePie instance is deprecated since SimplePie 1.9.0, create one
SimplePie instance per feed and use SimplePie::merge_items to get a single
list of items.`
This updates `fetch_feed()` to handle multiple requests using seperate
SimplePie instances in order to retain backward compatibility.
A PHP 8.5 deprecation was throwing notices in the event an empty URL was
passed to `fetch_feed()`, `Using null as an array offset is deprecated,
use an empty string instead`.
This includes a workaround pending the release of a SimplePie version
including [https://github.com/simplepie/simplepie/pull/949
simplepie/simplepie#949].
Fixes #64136.
Props audrasjb, jorbin, muryam, oglekler, ozgursar, presskopp, swissspidy,
westonruter, wildworks, peterwilsoncc.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64136#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list