[wp-hackers] the_tags does not apply_filter('the_tags')

Silverstein, Jesse Jesse.Silverstein at xerox.com
Mon Apr 6 19:09:27 GMT 2009


As the subject states, calling the_tags() does not
apply_filters('the_tags', ...) In order to get the filter applied, you
have to call get_the_tag_list()

At least in 2.8-bleeding.

 

Is this the desired behavior?

 

If not, it could be fixed by changing:

 

function the_tags( $before = 'Tags: ', $sep = ', ', $after = '' ) {

     return the_terms( 0, 'post_tag', $before, $sep, $after );

}

 

to:

 

function the_tags( $before = 'Tags: ', $sep = ', ', $after = '' ) {

     return get_the_tag_list ( $before, $sep, $after );

}

 

-Jesse Silverstein



More information about the wp-hackers mailing list