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:
parent
df4d3c3575
commit
91dc06e264
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user