Make WordPress Core


Ignore:
Timestamp:
12/20/2021 07:31:37 PM (5 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/Enclosure.php

    r47733 r52393  
    11531153                if (!in_array($type, array_merge($types_flash, $types_fmedia, $types_quicktime, $types_wmedia, $types_mp3)))
    11541154                {
    1155                         switch (strtolower($this->get_extension()))
     1155                        $extension = $this->get_extension();
     1156                        if ($extension === null) {
     1157                                return null;
     1158                        }
     1159
     1160                        switch (strtolower($extension))
    11561161                        {
    11571162                                // Audio mime-types
Note: See TracChangeset for help on using the changeset viewer.