Changeset 22366 for trunk/wp-includes/SimplePie/Registry.php
- Timestamp:
- 11/05/2012 02:25:25 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/SimplePie/Registry.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 … … 204 204 $class = $this->get_class($type); 205 205 206 if (in_array($class, $this->legacy)) 207 { 208 switch ($type) 209 { 210 case 'Cache': 211 // For backwards compatibility with old non-static 212 // Cache::create() methods 213 if ($method === 'get_handler') 214 { 215 $result = @call_user_func_array(array($class, 'create'), $parameters); 216 return $result; 217 } 218 break; 219 } 220 } 221 206 222 $result = call_user_func_array(array($class, $method), $parameters); 207 223 return $result;
Note: See TracChangeset
for help on using the changeset viewer.