WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/05/2012 02:25:25 PM (8 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/Cache.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
     
    8080     * @return SimplePie_Cache_Base Type of object depends on scheme of `$location`
    8181     */
    82     public static function create($location, $filename, $extension)
     82    public static function get_handler($location, $filename, $extension)
    8383    {
    8484        $type = explode(':', $location, 2);
     
    9191
    9292        return new SimplePie_Cache_File($location, $filename, $extension);
     93    }
     94
     95    /**
     96     * Create a new SimplePie_Cache object
     97     *
     98     * @deprecated Use {@see get_handler} instead
     99     */
     100    public function create($location, $filename, $extension)
     101    {
     102        trigger_error('Cache::create() has been replaced with Cache::get_handler(). Switch to the registry system to use this.', E_USER_DEPRECATED);
     103        return self::get_handler($location, $filename, $extension);
    93104    }
    94105
Note: See TracChangeset for help on using the changeset viewer.