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

git-svn-id: https://develop.svn.wordpress.org/trunk@10888 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-04-07 23:54:16 +00:00
parent df4d3c3575
commit 91dc06e264

View File

@ -779,7 +779,7 @@ function get_the_tags( $id = 0 ) {
* @return string * @return string
*/ */
function get_the_tag_list( $before = '', $sep = '', $after = '' ) { function get_the_tag_list( $before = '', $sep = '', $after = '' ) {
return apply_filters( 'the_tags', get_the_term_list( 0, 'post_tag', $before, $sep, $after ) ); return apply_filters( 'the_tags', get_the_term_list( 0, 'post_tag', $before, $sep, $after ), $before, $sep, $after);
} }
/** /**
@ -792,8 +792,10 @@ function get_the_tag_list( $before = '', $sep = '', $after = '' ) {
* @param string $after Optional. After list. * @param string $after Optional. After list.
* @return string * @return string
*/ */
function the_tags( $before = 'Tags: ', $sep = ', ', $after = '' ) { function the_tags( $before = null, $sep = ', ', $after = '' ) {
return the_terms( 0, 'post_tag', $before, $sep, $after ); if ( null === $before )
$before = __('Tags: ');
echo get_the_tag_list($before, $sep, $after);
} }
/** /**