Ticket #9927: 9927.4.patch
File 9927.4.patch, 2.1 KB (added by , 16 years ago) |
---|
-
wp-includes/category-template.php
287 287 /** 288 288 * Retrieve category description. 289 289 * 290 * @since 1.0.0290 * @since 2.9.0 291 291 * 292 292 * @param int $category Optional. Category ID. Will use global category ID by default. 293 293 * @return string Category description, available. 294 294 */ 295 function category_description( $category = 0 ) {295 function get_category_description( $category = 0 ) { 296 296 return term_description( $category, 'category' ); 297 297 } 298 298 … … 806 806 /** 807 807 * Retrieve tag description. 808 808 * 809 * @since 2. 8809 * @since 2.9.0 810 810 * 811 811 * @param int $tag Optional. Tag ID. Will use global tag ID by default. 812 812 * @return string Tag description, available. 813 813 */ 814 function tag_description( $tag = 0 ) {814 function get_tag_description( $tag = 0 ) { 815 815 return term_description( $tag ); 816 816 } 817 817 -
wp-includes/deprecated.php
1690 1690 the_author_meta('ID'); 1691 1691 } 1692 1692 1693 /** 1694 * Retrieve category description. 1695 * 1696 * @since 1.0.0 1697 * @deprecated 2.9.0 1698 * @deprecated Use get_category_description($category) 1699 * 1700 * @param int $category Optional. Category ID. Will use global category ID by default. 1701 * @return string Category description, available. 1702 */ 1703 function category_description( $category = 0 ) { 1704 _deprecated_function(__FUNCTION__, '2.9.0', 'get_category_description()' ); 1705 return get_category_description($category); 1706 } 1707 1708 /** 1709 * Retrieve tag description. 1710 * 1711 * @since 2.8.0 1712 * @deprecated 2.9.0 1713 * @deprecated Use get_tag_description($tag) 1714 * 1715 * @param int $tag Optional. Tag ID. Will use global tag ID by default. 1716 * @return string Tag description, available. 1717 */ 1718 function tag_description( $tag = 0 ) { 1719 _deprecated_function(__FUNCTION__, '2.9.0', 'get_tag_description()' ); 1720 return get_tag_description($tag); 1721 } 1722 1693 1723 ?> 1724 No newline at end of file