﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
18270	get_cat_ID() returns term_id rather than term_taxonomy_id	GeorgeStephanis		"get_cat_ID() currently returns the wrong value for a category id.  It's giving the term id rather than the term taxonomy id.

As the category ID is the term_taxonomy_id -- I believe that this is just legacy code from before the term_id and term_taxonomy_id were separated.

However, if your site is not running a straight 1:1 ratio for term_id = term_taxonomy_id (as some aren't) it will not give you the correct category id.

Fix:

have it return ->term_taxonomy_id; instead of ->term_id;

-George"	defect (bug)	closed	normal		Taxonomy		normal	invalid		
