Make WordPress Core


Ignore:
Timestamp:
07/21/2025 01:39:41 AM (5 months ago)
Author:
peterwilsoncc
Message:

External Libraries: Upgrade Simple Pie to 1.8.1 (patched).

Upgrades the Simple Pie library to a patched version of 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:

A caching fix not included in Simple Pie 1.8.1 is also included in this upgrade, see simplepie/simplepie#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.

Props kaygee79, oglekler, SergeyBiryukov, peterwilsoncc.
Fixes #63717.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/SimplePie/src/SimplePie.php

    r59141 r60490  
    7171     * SimplePie Version
    7272     */
    73     public const VERSION = '1.8.0';
     73    public const VERSION = '1.8.1';
    7474
    7575    /**
     
    13741374        $this->sanitize->strip_htmltags($tags);
    13751375        if ($encode !== null) {
    1376             $this->sanitize->encode_instead_of_strip($tags);
     1376            $this->sanitize->encode_instead_of_strip($encode);
    13771377        }
    13781378    }
     
    17571757                }
    17581758                // Check if the cache has been updated
    1759                 elseif (isset($this->data['cache_expiration_time']) && $this->data['cache_expiration_time'] > time()) {
     1759                elseif (!isset($this->data['cache_expiration_time']) || $this->data['cache_expiration_time'] < time()) {
    17601760                    // Want to know if we tried to send last-modified and/or etag headers
    17611761                    // when requesting this file. (Note that it's up to the file to
     
    18321832            if (!$locate->is_feed($file)) {
    18331833                $copyStatusCode = $file->status_code;
    1834                 $copyContentType = $file->headers['content-type'];
     1834                $copyContentType = $file->headers['content-type'] ?? '';
    18351835                try {
    18361836                    $microformats = false;
Note: See TracChangeset for help on using the changeset viewer.