WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/01/2020 02:24:42 PM (18 months ago)
Author:
desrosj
Message:

External Libraries: Update the SimplePie library to the latest version (1.5.5).

This brings SimplePie in sync with the most up to date version, 1.5.5.

This update brings many bug fixes, small enhancements, and PHP compatibility fixes for newer versions of PHP.

For a full list of changes, see https://github.com/simplepie/simplepie/blob/master/CHANGELOG.md#155-may-1-2020.

Props dshanske, slushman, etruel, wpshades, dmenard, desrosj, hareesh-pillai, stevenkword, jrf, Ipstenu, johnbillion.
Fixes #36669.

File:
1 edited

Legend:

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

    r22798 r47733  
    66 * Takes the hard work out of managing a complete RSS/Atom solution.
    77 *
    8  * Copyright (c) 2004-2012, Ryan Parman, Geoffrey Sneddon, Ryan McCue, and contributors
     8 * Copyright (c) 2004-2016, Ryan Parman, Sam Sneddon, Ryan McCue, and contributors
    99 * All rights reserved.
    1010 *
     
    3434 *
    3535 * @package SimplePie
    36  * @version 1.3.1
    37  * @copyright 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
     36 * @copyright 2004-2016 Ryan Parman, Sam Sneddon, Ryan McCue
    3837 * @author Ryan Parman
    39  * @author Geoffrey Sneddon
     38 * @author Sam Sneddon
    4039 * @author Ryan McCue
    4140 * @link http://simplepie.org/ SimplePie
     
    122121                    return $return;
    123122                }
    124                 else
    125                 {
    126                     return $official;
    127                 }
     123
     124                return $official;
    128125            }
    129126            elseif ($official === 'text/html')
     
    131128                return $this->feed_or_html();
    132129            }
    133             else
    134             {
    135                 return $official;
    136             }
    137         }
    138         else
    139         {
    140             return $this->unknown();
    141         }
     130
     131            return $official;
     132        }
     133
     134        return $this->unknown();
    142135    }
    143136
     
    160153            return 'application/octect-stream';
    161154        }
    162         else
    163         {
    164             return 'text/plain';
    165         }
     155
     156        return 'text/plain';
    166157    }
    167158
     
    209200            return 'image/vnd.microsoft.icon';
    210201        }
    211         else
    212         {
    213             return $this->text_or_binary();
    214         }
     202
     203        return $this->text_or_binary();
    215204    }
    216205
     
    243232            return 'image/vnd.microsoft.icon';
    244233        }
    245         else
    246         {
    247             return false;
    248         }
     234
     235        return false;
    249236    }
    250237
     
    257244    {
    258245        $len = strlen($this->file->body);
    259         $pos = strspn($this->file->body, "\x09\x0A\x0D\x20");
     246        $pos = strspn($this->file->body, "\x09\x0A\x0D\x20\xEF\xBB\xBF");
    260247
    261248        while ($pos < $len)
     
    330317    }
    331318}
    332 
Note: See TracChangeset for help on using the changeset viewer.