Make WordPress Core

Opened 10 years ago

Last modified 5 years ago

#27158 new defect (bug)

do_enclose() throws warnings when content_type is text/html and not audio or video

Reported by: tamas_dxw's profile tamas_dxw Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.8.1
Component: Pings/Trackbacks Keywords: needs-patch needs-unit-tests
Focuses: Cc:


cron calls do_pings()/do_all_pings() which in turn goes on to do_enclose().

PHP Warning: strpos() expects parameter 1 to be string, array given in /var/vhost/site/wp-includes/functions.php on line 505

$url is valid, $type is "text/html; charset=UTF-8", $len is valid as well.
$allowed_types is array(0=>video, 1=>audio)

server environment:
PHP 5.5.3-1ubuntu2.1
Apache 2.4.6
running WP 3.8.1, no multisite

Change History (3)

#1 @kirasong
10 years ago

  • Component changed from Media to Pings/Trackbacks

This ticket was mentioned in IRC in #wordpress-dev by DH-Shredder. View the logs.

10 years ago

#3 @chriscct7
9 years ago

  • Keywords needs-patch needs-unit-tests added
Note: See TracTickets for help on using tickets.