WordPress.org

Make WordPress Core

Changeset 10615


Ignore:
Timestamp:
02/21/09 06:14:52 (7 years ago)
Author:
azaozz
Message:

Fix regex in function rss_enclosure(), fixes #9192

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/feed.php

    r10385 r10615  
    404404        if ($key == 'enclosure') { 
    405405            foreach ( (array) $val as $enc ) { 
    406                 $enclosure = split("\n", $enc); 
     406                $enclosure = explode("\n", $enc); 
    407407 
    408408                //only get the the first element eg, audio/mpeg from 'audio/mpeg mpga mp2 mp3' 
    409                 $t = split('[ \t]', trim($enclosure[2]) ); 
     409                $t = preg_split('/[ \t]/', trim($enclosure[2]) ); 
    410410                $type = $t[0]; 
    411411 
Note: See TracChangeset for help on using the changeset viewer.