Make WordPress Core


Ignore:
Timestamp:
11/05/2012 02:25:25 PM (11 years ago)
Author:
ryan
Message:

Update SimplePie to 1.3.1. Props rmccue, ocean90. fixes #22321

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/SimplePie/Sanitize.php

    r21644 r22366  
    3434 *
    3535 * @package SimplePie
    36  * @version 1.3
     36 * @version 1.3.1
    3737 * @copyright 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
    3838 * @author Ryan Parman
     
    303303                        {
    304304                            $image_url = call_user_func($this->cache_name_function, $img->getAttribute('src'));
    305                             $cache = $this->registry->call('Cache', 'create', array($this->cache_location, $image_url, 'spi'));
     305                            $cache = $this->registry->call('Cache', 'get_handler', array($this->cache_location, $image_url, 'spi'));
    306306
    307307                            if ($cache->load())
     
    357357            if ($type & SIMPLEPIE_CONSTRUCT_IRI)
    358358            {
    359                 $data = $this->registry->call('Misc', 'absolutize_url', array($data, $base));
     359                $absolute = $this->registry->call('Misc', 'absolutize_url', array($data, $base));
     360                if ($absolute !== false)
     361                {
     362                    $data = $absolute;
     363                }
    360364            }
    361365
     
    413417                    {
    414418                        $value = $this->registry->call('Misc', 'absolutize_url', array($element->getAttribute($attribute), $this->base));
    415                         $element->setAttribute($attribute, $value);
     419                        if ($value !== false)
     420                        {
     421                            $element->setAttribute($attribute, $value);
     422                        }
    416423                    }
    417424                }
Note: See TracChangeset for help on using the changeset viewer.