From 6ecb1077d7375677af0be1357dc0a58c50db9b15 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 16 Apr 2009 22:03:45 +0000 Subject: [PATCH] Deprecae get_catname(). Props filosofo. fixes #9550 git-svn-id: http://svn.automattic.com/wordpress/trunk@10959 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/category.php | 15 --------------- wp-includes/deprecated.php | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/wp-includes/category.php b/wp-includes/category.php index fb81dfb2b7..5df4d27e04 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 d6ade51ae7..25c5392912 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. *