Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#12649 closed defect (bug) (duplicate)

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

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


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 6 years ago.
wp-12649.patch (617 bytes) - added by lordgun 6 years ago.

Download all attachments as: .zip

Change History (6)

6 years ago

#1 @nacin
6 years ago

MagpieRSS is deprecated. Use Simplepie instead.

6 years ago

#2 @nacin
6 years ago

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

#3 @nacin
6 years ago

  • Status changed from new to assigned

#4 @dd32
6 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.