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/Enclosure.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
    … …  
    284283                        return $this->bitrate;
    285284                }
    286                 else
    287                 {
    288                         return null;
    289                 }
     285
     286                return null;
    290287        }
    291288
    … …  
    303300                        return $captions[$key];
    304301                }
    305                 else
    306                 {
    307                         return null;
    308                 }
     302
     303                return null;
    309304        }
    310305
    … …  
    320315                        return $this->captions;
    321316                }
    322                 else
    323                 {
    324                         return null;
    325                 }
     317
     318                return null;
    326319        }
    327320
    … …  
    339332                        return $categories[$key];
    340333                }
    341                 else
    342                 {
    343                         return null;
    344                 }
     334
     335                return null;
    345336        }
    346337
    … …  
    356347                        return $this->categories;
    357348                }
    358                 else
    359                 {
    360                         return null;
    361                 }
     349
     350                return null;
    362351        }
    363352
    … …  
    373362                        return $this->channels;
    374363                }
    375                 else
    376                 {
    377                         return null;
    378                 }
     364
     365                return null;
    379366        }
    380367
    … …  
    390377                        return $this->copyright;
    391378                }
    392                 else
    393                 {
    394                         return null;
    395                 }
     379
     380                return null;
    396381        }
    397382
    … …  
    409394                        return $credits[$key];
    410395                }
    411                 else
    412                 {
    413                         return null;
    414                 }
     396
     397                return null;
    415398        }
    416399
    … …  
    426409                        return $this->credits;
    427410                }
    428                 else
    429                 {
    430                         return null;
    431                 }
     411
     412                return null;
    432413        }
    433414
    … …  
    443424                        return $this->description;
    444425                }
    445                 else
    446                 {
    447                         return null;
    448                 }
     426
     427                return null;
    449428        }
    450429
    … …  
    452431         * Get the duration of the enclosure
    453432         *
    454          * @param string $convert Convert seconds into hh:mm:ss
     433         * @param bool $convert Convert seconds into hh:mm:ss
    455434         * @return string|int|null 'hh:mm:ss' string if `$convert` was specified, otherwise integer (or null if none found)
    456435         */
    … …  
    464443                                return $time;
    465444                        }
    466                         else
    467                         {
    468                                 return $this->duration;
    469                         }
    470                 }
    471                 else
    472                 {
    473                         return null;
    474                 }
     445
     446                        return $this->duration;
     447                }
     448
     449                return null;
    475450        }
    476451
    … …  
    486461                        return $this->expression;
    487462                }
    488                 else
    489                 {
    490                         return 'full';
    491                 }
     463
     464                return 'full';
    492465        }
    493466
    … …  
    521494                        return $this->framerate;
    522495                }
    523                 else
    524                 {
    525                         return null;
    526                 }
     496
     497                return null;
    527498        }
    528499
    … …  
    551522                        return $hashes[$key];
    552523                }
    553                 else
    554                 {
    555                         return null;
    556                 }
     524
     525                return null;
    557526        }
    558527
    … …  
    568537                        return $this->hashes;
    569538                }
    570                 else
    571                 {
    572                         return null;
    573                 }
     539
     540                return null;
    574541        }
    575542
    … …  
    585552                        return $this->height;
    586553                }
    587                 else
    588                 {
    589                         return null;
    590                 }
     554
     555                return null;
    591556        }
    592557
    … …  
    603568                        return $this->lang;
    604569                }
    605                 else
    606                 {
    607                         return null;
    608                 }
     570
     571                return null;
    609572        }
    610573
    … …  
    622585                        return $keywords[$key];
    623586                }
    624                 else
    625                 {
    626                         return null;
    627                 }
     587
     588                return null;
    628589        }
    629590
    … …  
    639600                        return $this->keywords;
    640601                }
    641                 else
    642                 {
    643                         return null;
    644                 }
     602
     603                return null;
    645604        }
    646605
    … …  
    656615                        return $this->length;
    657616                }
    658                 else
    659                 {
    660                         return null;
    661                 }
     617
     618                return null;
    662619        }
    663620
    … …  
    673630                        return urldecode($this->link);
    674631                }
    675                 else
    676                 {
    677                         return null;
    678                 }
     632
     633                return null;
    679634        }
    680635
    … …  
    691646                        return $this->medium;
    692647                }
    693                 else
    694                 {
    695                         return null;
    696                 }
     648
     649                return null;
    697650        }
    698651
    … …  
    709662                        return $this->player;
    710663                }
    711                 else
    712                 {
    713                         return null;
    714                 }
     664
     665                return null;
    715666        }
    716667
    … …  
    728679                        return $ratings[$key];
    729680                }
    730                 else
    731                 {
    732                         return null;
    733                 }
     681
     682                return null;
    734683        }
    735684
    … …  
    745694                        return $this->ratings;
    746695                }
    747                 else
    748                 {
    749                         return null;
    750                 }
     696
     697                return null;
    751698        }
    752699
    … …  
    764711                        return $restrictions[$key];
    765712                }
    766                 else
    767                 {
    768                         return null;
    769                 }
     713
     714                return null;
    770715        }
    771716
    … …  
    781726                        return $this->restrictions;
    782727                }
    783                 else
    784                 {
    785                         return null;
    786                 }
     728
     729                return null;
    787730        }
    788731
    … …  
    798741                        return $this->samplingrate;
    799742                }
    800                 else
    801                 {
    802                         return null;
    803                 }
     743
     744                return null;
    804745        }
    805746
    … …  
    816757                        return round($length/1048576, 2);
    817758                }
    818                 else
    819                 {
    820                         return null;
    821                 }
     759
     760                return null;
    822761        }
    823762
    … …  
    835774                        return $thumbnails[$key];
    836775                }
    837                 else
    838                 {
    839                         return null;
    840                 }
     776
     777                return null;
    841778        }
    842779
    … …  
    852789                        return $this->thumbnails;
    853790                }
    854                 else
    855                 {
    856                         return null;
    857                 }
     791
     792                return null;
    858793        }
    859794
    … …  
    869804                        return $this->title;
    870805                }
    871                 else
    872                 {
    873                         return null;
    874                 }
     806
     807                return null;
    875808        }
    876809
    … …  
    887820                        return $this->type;
    888821                }
    889                 else
    890                 {
    891                         return null;
    892                 }
     822
     823                return null;
    893824        }
    894825
    … …  
    904835                        return $this->width;
    905836                }
    906                 else
    907                 {
    908                         return null;
    909                 }
     837
     838                return null;
    910839        }
    911840
    … …  
    943872         *    numeric pixel value (such as `360`) or `auto`. Defaults to `auto`,
    944873         *    and it is recommended that you use this default.
    945          * - `loop` (boolean): Do you want the media to loop when its done?
     874         * - `loop` (boolean): Do you want the media to loop when it's done?
    946875         *    Defaults to `false`.
    947876         * - `mediaplayer` (string): The location of the included
    … …  
    13671296                                return 'mp3';
    13681297                        }
    1369                         else
    1370                         {
    1371                                 return null;
    1372                         }
    1373                 }
    1374                 else
    1375                 {
    1376                         return $type;
    1377                 }
     1298
     1299                        return null;
     1300                }
     1301
     1302                return $type;
    13781303        }
    13791304}
    1380 
Note: See TracChangeset for help on using the changeset viewer.