Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#12649 closed defect (bug) (duplicate)

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

Reported by: lordgun's profile lordgun Owned by: dd32's profile dd32
Milestone: Priority: normal
Severity: normal Version: 2.9.2
Component: HTTP API Keywords: warning php
Focuses: 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 14 years ago.
wp-12649.patch (617 bytes) - added by lordgun 14 years ago.

Download all attachments as: .zip

Change History (6)

#1 @nacin
14 years ago

MagpieRSS is deprecated. Use Simplepie instead.

@lordgun
14 years ago

#2 @nacin
14 years ago

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

#3 @nacin
14 years ago

  • Status changed from new to assigned

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