Skip to content

Upgrade SimplePie to 1.9.0#2230

Merged
mattyrob merged 9 commits intodevelopfrom
upgrade/simplepie-1.9.0
Jan 7, 2026
Merged

Upgrade SimplePie to 1.9.0#2230
mattyrob merged 9 commits intodevelopfrom
upgrade/simplepie-1.9.0

Conversation

@mattyrob
Copy link
Collaborator

@mattyrob mattyrob commented Dec 3, 2025

Description

Upgrade SimplePie to version 1.9.0 and also apply a PHP 8.5 fix that is as yet unrelease.

This is a sequential PR backporting five previous updates and changes, incluiding removing files removed from SimplePie on upgrade..

Motivation and context

PHP 8.5 compatibility and extrnal library upgrade.

How has this been tested?

This is a sequentila backport, local test suite (PHPUnit and PCPCS) are passing, but will also run on this PR.

Screenshots

N/A

Types of changes

  • Enhancement

desrosj and others added 8 commits December 3, 2025 17:01
After the SimplePie library was updated to version `1.8.0` in https://core.trac.wordpress.org/changeset/59141, an edge case has been discovered where a fatal error can encountered if the `blog_charset` option is missing or empty.

In `fetch_feed()`, this option is retrieved using `get_option()` instead of `get_bloginfo( ‘charset’ )`. The latter will detect this scenario and apply a default value of `UTF-8` and is already used interchangeably throughout Core. This switches to `get_bloginfo( ‘charset’ )` instead to prevent this edge case.

WP:Props david.binda, davidbaumwald, SergeyBiryukov, sabernhardt, azaozz, peterwilsoncc.
Fixes https://core.trac.wordpress.org/ticket/62354.

---

Merges https://core.trac.wordpress.org/changeset/59382 / WordPress/wordpress-develop@2762e5e92b to ClassicPress.
Introduced a new test data file containing the WordPress.org news RSS feed in XML format for use in PHPUnit tests.
Upgrades the Simple Pie library to a patched version of [https://github.com/simplepie/simplepie/releases/tag/1.8.1 Simple Pie 1.8.1]. Much of 1.8.1 was included in the 1.8.0 upgrade committed in r59141. The following fixes from the latest release those that remain for this upgrade:

* Fix locator with website missing `Content-Type` header [simplepie/simplepie#891 simplepie/simplepiehttps://core.trac.wordpress.org/ticket/891]
* Fix `encode` argument of `SimplePie::strip_htmltags()` [simplepie/simplepie#894 simplepie/simplepiehttps://core.trac.wordpress.org/ticket/894]

A caching fix not included in Simple Pie 1.8.1 is also included in this upgrade, see [simplepie/simplepie#883 simplepie/simplepiehttps://core.trac.wordpress.org/ticket/883].

A caching test for `fetch_feed()` is introduced in this pull request to ensure that the caching patch is included in future upgrades of the library.

WP:Props kaygee79, oglekler, SergeyBiryukov, peterwilsoncc.
Fixes https://core.trac.wordpress.org/ticket/63717.

---

Merges https://core.trac.wordpress.org/changeset/60490 / WordPress/wordpress-develop@f0a3c68f9e to ClassicPress.
Cleaned up leftover merge conflict markers and redundant code in fetch_feed function to ensure proper sanitization class is set for SimplePie.
Added 'wp-includes/SimplePie/src/Decode' and 'wp-includes/SimplePie/src/Core.php' to the $_old_files array to support the upgrade to SimplePie 1.9.0.
@mattyrob mattyrob added this to the 2.7 milestone Dec 3, 2025
@mattyrob mattyrob requested a review from xxsimoxx December 3, 2025 18:12
Copy link
Member

@xxsimoxx xxsimoxx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Local unit tests are passing after grunt build.

@mattyrob mattyrob merged commit 7208126 into develop Jan 7, 2026
79 of 80 checks passed
@mattyrob mattyrob deleted the upgrade/simplepie-1.9.0 branch January 7, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants