Make WordPress Core

Ticket #18309: simplepie-1-2.diff

File simplepie-1-2.diff, 1.3 KB (added by nacin, 13 years ago)
  • class-simplepie.php

     
    11<?php
    2 if ( !class_exists( 'SimplePie' ) ) :
    32/**
    43 * SimplePie
    54 *
     
    18311830        }
    18321831
    18331832        /**
    1834          * Return the error message for the occurred error
     1833         * Return the error message for the occured error
    18351834         *
    18361835         * @access public
    18371836         * @return string Error message
     
    40674066                                        $temp = explode(':', $this->sanitize($duration_parent[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT));
    40684067                                        if (sizeof($temp) > 0)
    40694068                                        {
    4070                                                 $seconds = (int) array_pop($temp);
     4069                                                (int) $seconds = array_pop($temp);
    40714070                                        }
    40724071                                        if (sizeof($temp) > 0)
    40734072                                        {
    4074                                                 $minutes = (int) array_pop($temp);
     4073                                                (int) $minutes = array_pop($temp);
    40754074                                                $seconds += $minutes * 60;
    40764075                                        }
    40774076                                        if (sizeof($temp) > 0)
    40784077                                        {
    4079                                                 $hours = (int) array_pop($temp);
     4078                                                (int) $hours = array_pop($temp);
    40804079                                                $seconds += $hours * 3600;
    40814080                                        }
    40824081                                        unset($temp);
     
    94279426                }
    94289427
    94299428                // This is first, as behaviour of this is completely predictable
    9430                 if ($input === 'windows-1252' && $output === 'UTF-8')
     9429                if ($input === 'Windows-1252' && $output === 'UTF-8')
    94319430                {
    94329431                        return SimplePie_Misc::windows_1252_to_utf8($data);
    94339432                }
     
    1499814997                }
    1499914998        }
    1500014999}
    15001 endif;
     15000
    1500215001?>