Make WordPress Core


Ignore:
Timestamp:
01/09/2012 09:20:51 PM (13 years ago)
Author:
duck_
Message:

split was deprecated in PHP 5.3.0, so use explode instead. Props garyc40. Fixes #16325.

File:
1 edited

Legend:

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

    r19598 r19726  
    425425        if ($key == 'enclosure') {
    426426            foreach ( (array) $val as $enc ) {
    427                 $enclosure = split("\n", $enc);
     427                $enclosure = explode("\n", $enc);
    428428                echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
    429429            }
Note: See TracChangeset for help on using the changeset viewer.