Deprecae get_catname(). Props filosofo. fixes #9550

git-svn-id: http://svn.automattic.com/wordpress/trunk@10959 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-04-16 22:03:45 +00:00
parent b8566c75cd
commit 6ecb1077d7
2 changed files with 15 additions and 15 deletions

View File

@ -172,21 +172,6 @@ function get_cat_ID( $cat_name='General' ) {
}
/**
* Retrieve the category name by the category ID.
*
* @since 0.71
* @deprecated Use get_cat_name()
* @see get_cat_name() get_catname() is deprecated in favor of get_cat_name().
*
* @param int $cat_ID Category ID
* @return string category name
*/
function get_catname( $cat_ID ) {
return get_cat_name( $cat_ID );
}
/**
* Retrieve the name of a category from its ID.
*

View File

@ -1303,6 +1303,21 @@ function get_commentdata( $comment_ID, $no_cache = 0, $include_unapproved = fals
return get_comment($comment_ID, ARRAY_A);
}
/**
* Retrieve the category name by the category ID.
*
* @since 0.71
* @deprecated Use get_cat_name()
* @see get_cat_name() get_catname() is deprecated in favor of get_cat_name().
*
* @param int $cat_ID Category ID
* @return string category name
*/
function get_catname( $cat_ID ) {
_deprecated_function(__FUNCTION__, '2.8', 'get_cat_name()');
return get_cat_name( $cat_ID );
}
/**
* Retrieve category children list separated before and after the term IDs.
*