diff --git a/wp-includes/category.php b/wp-includes/category.php index fb81dfb2b..5df4d27e0 100644 --- a/wp-includes/category.php +++ b/wp-includes/category.php @@ -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. * diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index d6ade51ae..25c539291 100644 --- a/wp-includes/deprecated.php +++ b/wp-includes/deprecated.php @@ -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. *