Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/wp-includes/feed.php

    r10387 r10616  
    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.