WordPress.org

Make WordPress Core

Ticket #9436: the_tags.patch

File the_tags.patch, 751 bytes (added by scribu, 9 years ago)

Also pass the arguments to the filter

  • category-template.php

     
    779779 * @return string
    780780 */
    781781function get_the_tag_list( $before = '', $sep = '', $after = '' ) {
    782         return apply_filters( 'the_tags', get_the_term_list( 0, 'post_tag', $before, $sep, $after ) );
     782        return apply_filters( 'the_tags', get_the_term_list( 0, 'post_tag', $before, $sep, $after ), $before, $sep, $after);
    783783}
    784784
    785785/**
     
    793793 * @return string
    794794 */
    795795function the_tags( $before = 'Tags: ', $sep = ', ', $after = '' ) {
    796         return the_terms( 0, 'post_tag', $before, $sep, $after );
     796        echo get_the_tag_list($before, $sep, $after);
    797797}
    798798
    799799/**