WordPress.org

Make WordPress Core

Changeset 10888


Ignore:
Timestamp:
04/07/2009 11:54:16 PM (9 years ago)
Author:
ryan
Message:

Invoke the_tags filter in the_tags(). Props scribu. fixes #9436

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/category-template.php

    r10703 r10888  
    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
     
    793793 * @return string
    794794 */
    795 function the_tags( $before = 'Tags: ', $sep = ', ', $after = '' ) {
    796     return the_terms( 0, 'post_tag', $before, $sep, $after );
     795function the_tags( $before = null, $sep = ', ', $after = '' ) {
     796    if ( null === $before )
     797        $before = __('Tags: ');
     798    echo get_the_tag_list($before, $sep, $after);
    797799}
    798800
Note: See TracChangeset for help on using the changeset viewer.