[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
Thu Jan 29 01:05:35 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:  Feeds                                |     Version:  6.9
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit      |     Focuses:
  fixed-major dev-reviewed                       |  administration
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"61553" 61553]:
 {{{
 #!CommitTicketReference repository="" revision="61553"
 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].

 Reviewed by jorbin.
 Merges [61551] to the 6.9 branch.

 Fixes #64136.
 Props audrasjb, jorbin, muryam, oglekler, ozgursar, presskopp, swissspidy,
 westonruter, wildworks, peterwilsoncc.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64136#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list