wp/wp-includes/SimplePie/Registry.php
changeset 19 3d72ae0968f4
parent 16 a86126ab1dd4
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
   206 		{
   206 		{
   207 			switch ($type)
   207 			switch ($type)
   208 			{
   208 			{
   209 				case 'Cache':
   209 				case 'Cache':
   210 					// For backwards compatibility with old non-static
   210 					// For backwards compatibility with old non-static
   211 					// Cache::create() methods
   211 					// Cache::create() methods in PHP < 8.0.
       
   212 					// No longer supported as of PHP 8.0.
   212 					if ($method === 'get_handler')
   213 					if ($method === 'get_handler')
   213 					{
   214 					{
   214 						$result = @call_user_func_array(array($class, 'create'), $parameters);
   215 						$result = @call_user_func_array(array($class, 'create'), $parameters);
   215 						return $result;
   216 						return $result;
   216 					}
   217 					}