﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
23109	Inconsistent returned value	fp2x		"I have created a category (its slug is 'misc') with WP 3.4.2.
I have updated to WP 3.5.

Now, when I try to get the ID of the 'misc' category created with WP 3.4.2, I get different results from different functions.
{{{
    $t=get_category_by_slug( 'misc' );
    echo $t->term_id;// 18
    echo get_cat_ID('misc');// 0 but should be 18
}}}
After looking at category.php (http://core.trac.wordpress.org/browser/tags/3.5/wp-includes/category.php#L0), it seems that the two functions behave differently.

`get_cat_ID` doesn't take avantage of `_make_cat_compat`.

It may look like this :
{{{
function get_cat_ID( $cat_name ) {
   $cat =  get_category_by_slug( $cat_name );
   if ( $cat )
          return $cat->term_id;
   return 0;
}
}}}"	defect (bug)	closed	normal		Taxonomy	3.5	normal	invalid		
