From 63bf8c8316c8c2a5cc7cc5a495226e0aa6a3d221 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Mon, 23 Sep 2019 18:16:14 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@46260 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/SimplePie/Parse/Date.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/SimplePie/Parse/Date.php b/src/wp-includes/SimplePie/Parse/Date.php index 88e46e0309..52fea21efe 100644 --- a/src/wp-includes/SimplePie/Parse/Date.php +++ b/src/wp-includes/SimplePie/Parse/Date.php @@ -542,8 +542,8 @@ class SimplePie_Parse_Date */ public function __construct() { - $this->day_pcre = '(' . implode(array_keys($this->day), '|') . ')'; - $this->month_pcre = '(' . implode(array_keys($this->month), '|') . ')'; + $this->day_pcre = '(' . implode('|', array_keys($this->day)) . ')'; + $this->month_pcre = '(' . implode('|', array_keys($this->month)) . ')'; static $cache; if (!isset($cache[get_class($this)]))