Opened 3 years ago

Closed 3 years ago

#12649 closed defect (bug) (duplicate)

Warning: strpos() expects... in rss.php

Reported by: lordgun Owned by: dd32
Priority: normal Milestone:
Component: HTTP Version: 2.9.2
Severity: normal Keywords: warning php
Cc:

Description

Some RSS are generating Warning because headers are treated as strings and Twitter for example is sometimes using int types.

Attachments (2)

ScreenShot001.jpg (18.0 KB) - added by lordgun 3 years ago.
wp-12649.patch (617 bytes) - added by lordgun 3 years ago.

Download all attachments as: .zip

Change History (6)

lordgun3 years ago

MagpieRSS is deprecated. Use Simplepie instead.

lordgun3 years ago

  • Component changed from Warnings/Notices to HTTP
  • Owner changed from westi to dd32
  • Status changed from new to assigned

comment:4   dd323 years ago

  • Resolution set to duplicate
  • Status changed from assigned to closed

This ticket is a duplicate of #12045, All Headers returned should be Strings, however, the WP_HTTP class may return an array for multiple headers present. This commit fixed the snoopy compat layer to return it in the style expected.

(In [13848]) Fix WP_HTTP -> Snoopy Compat layer for Magpie RSS. Fixes #12045

Note: See TracTickets for help on using tickets.