From 1e61bd98797b6d69d259717f3f44c05c0ba645ca Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 14 Aug 2007 03:44:49 +0000 Subject: [PATCH] get_the_tag_list from andy. fixes #4733 git-svn-id: https://develop.svn.wordpress.org/trunk@5871 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/category-template.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index 7e3950871f..6ee72e7cb2 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -431,7 +431,7 @@ function get_the_tags( $id = 0 ) { return $tags; } -function the_tags( $before = 'Tags: ', $sep = ', ', $after = '' ) { +function get_the_tag_list( $before = '', $sep = '', $after = '' ) { $tags = get_the_tags(); if ( empty( $tags ) ) @@ -447,7 +447,11 @@ function the_tags( $before = 'Tags: ', $sep = ', ', $after = '' ) { $tag_list .= $after; - echo $tag_list; + return $tag_list; +} + +function the_tags( $before = 'Tags: ', $sep = ', ', $after = '' ) { + echo get_the_tag_list($before, $sep, $after); } ?>