WordPress.org

Make WordPress Core

Ticket #47383: 47383.diff

File 47383.diff, 1.1 KB (added by priyankkpatel, 11 months ago)

Patch for wp-includes/category-template.php

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

     src/wp-includes/category-template.php | 11 ++++++++++-
     1 file changed, 10 insertions(+), 1 deletion(-)
    
    diff --git a/src/wp-includes/category-template.php b/src/wp-includes/category-template.php
    index 438bbe9966..7619ba2202 100644
    a b function get_the_category_list( $separator = '', $parents = '', $post_id = false 
    148148        $categories = apply_filters( 'the_category_list', get_the_category( $post_id ), $post_id );
    149149
    150150        if ( empty( $categories ) ) {
    151                 /** This filter is documented in wp-includes/category-template.php */
     151                /**
     152                 * Filters the category or list of categories.
     153                 *
     154                 * @since 1.2.0
     155                 *
     156                 * @param string List of categories for the current post.
     157                 * @param string $separator Separator used between the categories.
     158                 * @param string $parents   How to display the category parents. Accepts 'multiple',
     159                 *                          'single', or empty.
     160                 */
    152161                return apply_filters( 'the_category', __( 'Uncategorized' ), $separator, $parents );
    153162        }
    154163