WordPress.org

Make WordPress Core

Changeset 46260


Ignore:
Timestamp:
09/23/2019 06:16:14 PM (2 months ago)
Author:
desrosj
Message:

External Libraries: Fix PHP 7.4 compatibility issues in the SimplePie library.

See: https://github.com/simplepie/simplepie/commit/38b504969ed08903cb12718e8270263a8c93080e

Props jrf, stevenkword, jorbin, desrosj.
See #47746.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/SimplePie/Parse/Date.php

    r35283 r46260  
    543543    public function __construct()
    544544    {
    545         $this->day_pcre = '(' . implode(array_keys($this->day), '|') . ')';
    546         $this->month_pcre = '(' . implode(array_keys($this->month), '|') . ')';
     545        $this->day_pcre = '(' . implode('|', array_keys($this->day)) . ')';
     546        $this->month_pcre = '(' . implode('|', array_keys($this->month)) . ')';
    547547
    548548        static $cache;
Note: See TracChangeset for help on using the changeset viewer.