[wp-trac] [WordPress Trac] #36669: Update SimplePie to Latest Version and possibly include PHP-MF2

WordPress Trac noreply at wordpress.org
Thu Oct 11 10:21:41 UTC 2018


#36669: Update SimplePie to Latest Version and possibly include PHP-MF2
--------------------------------+------------------------------
 Reporter:  dshanske            |       Owner:  rmccue
     Type:  enhancement         |      Status:  assigned
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  External Libraries  |     Version:  4.9.8
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:  SimplePie
--------------------------------+------------------------------

Comment (by dmenard):

 Hi!

 I would like to second this request.

 With WP 4.9.8 and PHP 7.2, the WordPress RSS widget generates many
 warnings like this:

 {{{
 Warning: A non-numeric value encountered in wordpress\wp-
 includes\SimplePie\Parse\Date.php on line 694

 10      SimplePie->get_items( $start = ???, $end = ??? )
 ...\class-simplepie.php:2812
 11      SimplePie_Item->get_date( $date_format = 'U' )
 ...\class-simplepie.php:2925
 12      SimplePie_Parse_Date->parse( $date = '2018-10-02T08:38:56Z' )
 ...\Item.php:773
 13      SimplePie_Parse_Date->date_w3cdtf( $date = '2018-10-02T08:38:56Z'
 )     ...\Date.php:603
 }}}

 These are caused by the way SimplePie 1.3.1 parses dates and by the
 [http://php.net/manual/en/migration71.other-changes.php new E_WARNINGs
 introduced in PHP 7.1].

 [https://github.com/simplepie/simplepie/commit/1111dab1baced14aaf05509c41ee416c3fc6a961
 A simple fix for this] has been made in july 2016 and is included
 [https://github.com/simplepie/simplepie/compare/1.4.2...master since
 SimplePie 1.4.2].

 So upgrading SimplePie to the latest version would solve these warnings.

 Thanks!

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/36669#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list