﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
14047	get_user_by() makes use of the cache even if it does not exists any longer	hakre		"This is mostly an error report, and it's quite bloody. But I thought I better report it before it gets lost.

I ran over this while having the following error message:

>  Fatal error: Call to a member function get() on a non-object in wp-includes\cache.php on line 93

That is the following code:

{{{
function wp_cache_get($id, $flag = '') {
	global $wp_object_cache;

	return $wp_object_cache->get($id, $flag);
}
}}}

So this API function (!) is blindly using that global variable w/o even checking if it's that what it thinks it is. Well not only that this is dangerous with any global in this case, every other function that relies on the function like {{{get_user_by()}}} does exit with a fatal error. for example after the cache has been shut down."	defect (bug)	closed	normal		General	2.9.2	normal	invalid	reporter-feedback close	wojtek.szkutnik@…
