From b5e8ea94366dc61e28b09b18fcbded20e8ad1868 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sat, 21 Feb 2009 06:14:52 +0000 Subject: [PATCH] Fix regex in function rss_enclosure(), fixes #9192 git-svn-id: https://develop.svn.wordpress.org/trunk@10615 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/feed.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/feed.php b/wp-includes/feed.php index de94736bfa..7ae82542a1 100644 --- a/wp-includes/feed.php +++ b/wp-includes/feed.php @@ -403,10 +403,10 @@ function rss_enclosure() { foreach ( (array) get_post_custom() as $key => $val) { if ($key == 'enclosure') { foreach ( (array) $val as $enc ) { - $enclosure = split("\n", $enc); + $enclosure = explode("\n", $enc); //only get the the first element eg, audio/mpeg from 'audio/mpeg mpga mp2 mp3' - $t = split('[ \t]', trim($enclosure[2]) ); + $t = preg_split('/[ \t]/', trim($enclosure[2]) ); $type = $t[0]; echo apply_filters('rss_enclosure', '' . "\n");