From 5ea68d0c9c0fd7417e62c6bd33fefaf9a0429707 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 16 Apr 2009 22:03:45 +0000 Subject: [PATCH] Deprecae get_catname(). Props filosofo. fixes #9550 git-svn-id: https://develop.svn.wordpress.org/trunk@10959 602fd350-edb4-49c9-b593-d223f7449a82 --- 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. *