Changeset 22366 for trunk/wp-includes/SimplePie/Sanitize.php
- Timestamp:
- 11/05/2012 02:25:25 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/SimplePie/Sanitize.php
r21644 r22366 34 34 * 35 35 * @package SimplePie 36 * @version 1.3 36 * @version 1.3.1 37 37 * @copyright 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue 38 38 * @author Ryan Parman … … 303 303 { 304 304 $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')); 306 306 307 307 if ($cache->load()) … … 357 357 if ($type & SIMPLEPIE_CONSTRUCT_IRI) 358 358 { 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 } 360 364 } 361 365 … … 413 417 { 414 418 $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 } 416 423 } 417 424 }
Note: See TracChangeset
for help on using the changeset viewer.