WordPress.org

Make WordPress Core

Ticket #9927: 9927.patch

File 9927.patch, 1.4 KB (added by ramiy, 5 years ago)
  • wp-includes/category-template.php

     
    287287/** 
    288288 * Retrieve category description. 
    289289 * 
    290  * @since 1.0.0 
     290 * @since 2.8.0 
    291291 * 
    292292 * @param int $category Optional. Category ID. Will use global category ID by default. 
    293293 * @return string Category description, available. 
    294294 */ 
    295 function category_description( $category = 0 ) { 
     295function get_category_description( $category = 0 ) { 
    296296        return term_description( $category, 'category' ); 
    297297} 
    298298 
  • wp-includes/deprecated.php

     
    16901690        the_author_meta('ID'); 
    16911691}  
    16921692 
     1693/** 
     1694 * Retrieve category description. 
     1695 * 
     1696 * @since 1.0.0 
     1697 * @deprecated 2.8 
     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 */ 
     1703function category_description( $category = 0 ) { 
     1704        _deprecated_function(__FUNCTION__, '2.8', 'get_category_description(\'ID\')' ); 
     1705        return get_category_description('ID'); 
     1706} 
    16931707?> 
     1708 No newline at end of file