From 2b6efccc06da2b0d1e283a70c5bf9aeba85c8cdc Mon Sep 17 00:00:00 2001 From: desrosj Date: Mon, 23 Sep 2019 18:17:58 +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. Built from https://develop.svn.wordpress.org/trunk@46260 git-svn-id: http://core.svn.wordpress.org/trunk@46072 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/SimplePie/Parse/Date.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/SimplePie/Parse/Date.php b/wp-includes/SimplePie/Parse/Date.php index 88e46e0309..52fea21efe 100644 --- a/wp-includes/SimplePie/Parse/Date.php +++ b/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)])) diff --git a/wp-includes/version.php b/wp-includes/version.php index 9188606035..e7ed517a6b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-46259'; +$wp_version = '5.3-alpha-46260'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.