Make WordPress Core


Ignore:
Timestamp:
12/20/2021 07:31:37 PM (4 years ago)
Author:
SergeyBiryukov
Message:

External Libraries: Update the SimplePie library to version 1.5.7.

This version shows significant improvements in the compatibility of SimplePie with PHP 8.0, 8.1, and even contains an initial PHP 8.2 fix. The release also contains a number of other bug fixes.

Release notes: https://github.com/simplepie/simplepie/releases/tag/1.5.7

For a full list of changes in this update, see the SimplePie GitHub:
https://github.com/simplepie/simplepie/compare/1.5.6...1.5.7

Follow-up to [47733], [49176].

Props jrf, SergeyBiryukov.
Fixes #54659.

File:
1 edited

Legend:

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

    r47733 r52393  
    18041804                            if (isset($content['attribs']['']['fileSize']))
    18051805                            {
    1806                                 $length = ceil($content['attribs']['']['fileSize']);
     1806                                $length = intval($content['attribs']['']['fileSize']);
    18071807                            }
    18081808                            if (isset($content['attribs']['']['medium']))
     
    24262426                        if (isset($content['attribs']['']['fileSize']))
    24272427                        {
    2428                             $length = ceil($content['attribs']['']['fileSize']);
     2428                            $length = intval($content['attribs']['']['fileSize']);
    24292429                        }
    24302430                        if (isset($content['attribs']['']['medium']))
     
    27912791                    if (isset($link['attribs']['']['length']))
    27922792                    {
    2793                         $length = ceil($link['attribs']['']['length']);
     2793                        $length = intval($link['attribs']['']['length']);
    27942794                    }
    27952795                    if (isset($link['attribs']['']['title']))
     
    28342834                    if (isset($link['attribs']['']['length']))
    28352835                    {
    2836                         $length = ceil($link['attribs']['']['length']);
     2836                        $length = intval($link['attribs']['']['length']);
    28372837                    }
    28382838
     
    28632863
    28642864                    $url = $this->sanitize($enclosure[0]['attribs']['']['url'], SIMPLEPIE_CONSTRUCT_IRI, $this->get_base($enclosure[0]));
     2865                    $url = $this->feed->sanitize->https_url($url);
    28652866                    if (isset($enclosure[0]['attribs']['']['type']))
    28662867                    {
     
    28692870                    if (isset($enclosure[0]['attribs']['']['length']))
    28702871                    {
    2871                         $length = ceil($enclosure[0]['attribs']['']['length']);
     2872                        $length = intval($enclosure[0]['attribs']['']['length']);
    28722873                    }
    28732874
Note: See TracChangeset for help on using the changeset viewer.