WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 3 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 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.8.1
Component: Pings/Trackbacks Keywords: needs-patch needs-unit-tests
Focuses: Cc:

Description

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 @mikeschroder
4 years ago

  • Component changed from Media to Pings/Trackbacks

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


4 years ago

#3 @chriscct7
3 years ago

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