Make WordPress Core


Ignore:
Timestamp:
05/01/2020 02:24:42 PM (6 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/Source.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
     
    8180                        return $this->data['child'][$namespace][$tag];
    8281                }
    83                 else
    84                 {
    85                         return null;
    86                 }
     82
     83                return null;
    8784        }
    8885
     
    132129                        return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    133130                }
    134                 else
    135                 {
    136                         return null;
    137                 }
     131
     132                return null;
    138133        }
    139134
     
    145140                        return $categories[$key];
    146141                }
    147                 else
    148                 {
    149                         return null;
    150                 }
     142
     143                return null;
    151144        }
    152145
     
    202195                        return array_unique($categories);
    203196                }
    204                 else
    205                 {
    206                         return null;
    207                 }
     197
     198                return null;
    208199        }
    209200
     
    215206                        return $authors[$key];
    216207                }
    217                 else
    218                 {
    219                         return null;
    220                 }
     208
     209                return null;
    221210        }
    222211
     
    285274                        return array_unique($authors);
    286275                }
    287                 else
    288                 {
    289                         return null;
    290                 }
     276
     277                return null;
    291278        }
    292279
     
    298285                        return $contributors[$key];
    299286                }
    300                 else
    301                 {
    302                         return null;
    303                 }
     287
     288                return null;
    304289        }
    305290
     
    356341                        return array_unique($contributors);
    357342                }
    358                 else
    359                 {
    360                         return null;
    361                 }
     343
     344                return null;
    362345        }
    363346
     
    369352                        return $links[$key];
    370353                }
    371                 else
    372                 {
    373                         return null;
    374                 }
     354
     355                return null;
    375356        }
    376357
     
    451432                        return $this->data['links'][$rel];
    452433                }
    453                 else
    454                 {
    455                         return null;
    456                 }
     434
     435                return null;
    457436        }
    458437
     
    495474                        return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_HTML, $this->get_base($return[0]));
    496475                }
    497                 else
    498                 {
    499                         return null;
    500                 }
     476
     477                return null;
    501478        }
    502479
     
    523500                        return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
    524501                }
    525                 else
    526                 {
    527                         return null;
    528                 }
     502
     503                return null;
    529504        }
    530505
     
    547522                        return $this->sanitize($this->data['xml_lang'], SIMPLEPIE_CONSTRUCT_TEXT);
    548523                }
    549                 else
    550                 {
    551                         return null;
    552                 }
     524
     525                return null;
    553526        }
    554527
     
    563536                        return (float) $match[1];
    564537                }
    565                 else
    566                 {
    567                         return null;
    568                 }
     538
     539                return null;
    569540        }
    570541
     
    583554                        return (float) $match[2];
    584555                }
    585                 else
    586                 {
    587                         return null;
    588                 }
     556
     557                return null;
    589558        }
    590559
     
    603572                        return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_IRI, $this->get_base($return[0]));
    604573                }
    605                 else
    606                 {
    607                         return null;
    608                 }
     574
     575                return null;
    609576        }
    610577}
    611 
Note: See TracChangeset for help on using the changeset viewer.