[wp-trac] [WordPress Trac] #51056: Fetch_feed parsing of permalinks triggers simplepie preg_match warnings

WordPress Trac noreply at wordpress.org
Tue Aug 18 20:17:33 UTC 2020


#51056: Fetch_feed parsing of permalinks triggers simplepie preg_match warnings
--------------------------------+-----------------------------
 Reporter:  litemotiv           |      Owner:  (none)
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  External Libraries  |    Version:  5.5
 Severity:  normal              |   Keywords:
  Focuses:                      |
--------------------------------+-----------------------------
 Tested with 2 sites running within the same 5.5 multisite network:

 {{{
 $feed = fetch_feed(<other WP site RSS URL>);
 $items = $feed->get_items(0,2);

 foreach ($items as $item)
     echo $item->get_permalink();
 }}}

 PHP warnings:

 {{{
  *6667000 FastCGI sent in stderr: "PHP message: PHP Warning:  preg_match()
 expects parameter 2 to be string, array given in /media/www/multisite/wp-
 includes/class-simplepie.php on line 2620
 PHP message: PHP Warning:  preg_match() expects parameter 2 to be string,
 array given in /media/www/multisite/wp-includes/class-simplepie.php on
 line 2620
 PHP message: PHP Warning:  preg_match() expects parameter 2 to be string,
 array given in /media/www/multisite/wp-includes/class-simplepie.php on
 line 2620
 PHP message: PHP Warning:  preg_match() expects parameter 2 to be string,
 array given in /media/www/multisite/wp-includes/class-simplepie.php on
 line 2620
 [ ... ]
 }}}

 The permalinks are parsed okay and are returned.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51056>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list