Make WordPress Core

Ticket #43381: 43381.diff

File 43381.diff, 514 bytes (added by chetan200891, 7 years ago)

Created patch to remove 'category' parameter.

  • src/wp-includes/category-template.php

    diff --git a/src/wp-includes/category-template.php b/src/wp-includes/category-template.php
    index 429fcb8..4fc432f 100644
    a b function the_category( $separator = '', $parents = '', $post_id = false ) { 
    273273 * @return string Category description, available.
    274274 */
    275275function category_description( $category = 0 ) {
    276         return term_description( $category, 'category' );
     276        return term_description( $category );
    277277}
    278278
    279279/**