Deprecae get_catname(). Props filosofo. fixes #9550

git-svn-id: https://develop.svn.wordpress.org/trunk@10959 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-04-16 22:03:45 +00:00
parent fdc0e0b555
commit 5ea68d0c9c
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.
*