mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 06:29:30 +00:00
Make $id arg optional in the_terms(). Fixes #15160
git-svn-id: http://svn.automattic.com/wordpress/trunk@15855 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d73598ad4d
commit
d71913bcce
@ -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 ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user