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

git-svn-id: http://svn.automattic.com/wordpress/trunk@10888 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-04-07 23:54:16 +00:00
parent bc69a42d12
commit 778f47aac1
1 changed files with 5 additions and 3 deletions

View File

@ -779,7 +779,7 @@ function get_the_tags( $id = 0 ) {
* @return string
*/
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.
* @return string
*/
function the_tags( $before = 'Tags: ', $sep = ', ', $after = '' ) {
return the_terms( 0, 'post_tag', $before, $sep, $after );
function the_tags( $before = null, $sep = ', ', $after = '' ) {
if ( null === $before )
$before = __('Tags: ');
echo get_the_tag_list($before, $sep, $after);
}
/**