[wp-hackers] Why in the heck won't this work?

Viper007Bond viper at viper007bond.com
Tue Aug 28 04:35:53 GMT 2007


I found the problem, but I'm not sure as to the solution.

When in_category() uses get_object_term_cache() to retrieve the request from
the cache, it gets an associative array in the cases I've tried. If the
cache is empty (which apparently it is on my admin page),
wp_get_object_terms() is used which returns a numerical array.

Am I missing something or is this a bug?

-- 
Viper007Bond | http://www.viper007bond.com/


More information about the wp-hackers mailing list