Ticket #9550: deprecate.get_catname.9550.diff
File deprecate.get_catname.9550.diff, 1.3 KB (added by , 16 years ago) |
---|
-
wp-includes/category.php
173 173 174 174 175 175 /** 176 * Retrieve the category name by the category ID.177 *178 * @since 0.71179 * @deprecated Use get_cat_name()180 * @see get_cat_name() get_catname() is deprecated in favor of get_cat_name().181 *182 * @param int $cat_ID Category ID183 * @return string category name184 */185 function get_catname( $cat_ID ) {186 return get_cat_name( $cat_ID );187 }188 189 190 /**191 176 * Retrieve the name of a category from its ID. 192 177 * 193 178 * @since 1.0.0 -
wp-includes/deprecated.php
1304 1304 } 1305 1305 1306 1306 /** 1307 * Retrieve the category name by the category ID. 1308 * 1309 * @since 0.71 1310 * @deprecated Use get_cat_name() 1311 * @see get_cat_name() get_catname() is deprecated in favor of get_cat_name(). 1312 * 1313 * @param int $cat_ID Category ID 1314 * @return string category name 1315 */ 1316 function get_catname( $cat_ID ) { 1317 _deprecated_function(__FUNCTION__, '2.8', 'get_cat_name()'); 1318 return get_cat_name( $cat_ID ); 1319 } 1320 1321 /** 1307 1322 * Retrieve category children list separated before and after the term IDs. 1308 1323 * 1309 1324 * @since 1.2.0