mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
External Libraries: Fix PHP 7.4 compatibility issues in the SimplePie library.
See: 38b504969e
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
This commit is contained in:
parent
6415382aaa
commit
2b6efccc06
@ -542,8 +542,8 @@ class SimplePie_Parse_Date
|
|||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->day_pcre = '(' . implode(array_keys($this->day), '|') . ')';
|
$this->day_pcre = '(' . implode('|', array_keys($this->day)) . ')';
|
||||||
$this->month_pcre = '(' . implode(array_keys($this->month), '|') . ')';
|
$this->month_pcre = '(' . implode('|', array_keys($this->month)) . ')';
|
||||||
|
|
||||||
static $cache;
|
static $cache;
|
||||||
if (!isset($cache[get_class($this)]))
|
if (!isset($cache[get_class($this)]))
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user