mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
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:
parent
bc69a42d12
commit
778f47aac1
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user