Make WordPress Core


Ignore:
Timestamp:
05/01/2020 02:24:42 PM (4 years 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/Cache/File.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
     
    103102    public function save($data)
    104103    {
    105         if (file_exists($this->name) && is_writeable($this->name) || file_exists($this->location) && is_writeable($this->location))
     104        if (file_exists($this->name) && is_writable($this->name) || file_exists($this->location) && is_writable($this->location))
    106105        {
    107106            if ($data instanceof SimplePie)
     
    137136    public function mtime()
    138137    {
    139         if (file_exists($this->name))
    140         {
    141             return filemtime($this->name);
    142         }
    143         return false;
     138        return @filemtime($this->name);
    144139    }
    145140
     
    151146    public function touch()
    152147    {
    153         if (file_exists($this->name))
    154         {
    155             return touch($this->name);
    156         }
    157         return false;
     148        return @touch($this->name);
    158149    }
    159150
Note: See TracChangeset for help on using the changeset viewer.