From 5242abafb1a2e1e67228e6bb987a566a72f7d8e4 Mon Sep 17 00:00:00 2001 From: scribu Date: Tue, 19 Oct 2010 22:46:26 +0000 Subject: [PATCH] Make $id arg optional in the_terms(). Fixes #15160 git-svn-id: https://develop.svn.wordpress.org/trunk@15855 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/category-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index f52ae45cf6..5e121842c7 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -913,7 +913,7 @@ function get_the_term_list( $id = 0, $taxonomy, $before = '', $sep = '', $after * @param string $after Optional. After list. * @return null|bool False on WordPress error. Returns null when displaying. */ -function the_terms( $id, $taxonomy, $before = '', $sep = ', ', $after = '' ) { +function the_terms( $id = 0, $taxonomy, $before = '', $sep = ', ', $after = '' ) { $term_list = get_the_term_list( $id, $taxonomy, $before, $sep, $after ); if ( is_wp_error( $term_list ) )