WordPress.org

Make WordPress Core

Ticket #47746: 47746-patch-up-SimplePie.patch

File 47746-patch-up-SimplePie.patch, 987 bytes (added by jrf, 14 months ago)
  • src/wp-includes/SimplePie/Parse/Date.php

    From 4086900b4a2c8cf173830b810580993b18d080ec Mon Sep 17 00:00:00 2001
    From: jrfnl <jrfnl@users.noreply.github.com>
    Date: Sat, 21 Sep 2019 16:39:09 +0200
    Subject: [PATCH] Patch up SimplePie
    
    ---
     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 b class SimplePie_Parse_Date 
    542542         */
    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;
    549549                if (!isset($cache[get_class($this)]))