WordPress.org

Make WordPress Core

Changeset 15855


Ignore:
Timestamp:
10/19/10 22:46:26 (6 years ago)
Author:
scribu
Message:

Make $id arg optional in the_terms(). Fixes #15160

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/category-template.php

    r15854 r15855  
    914914 * @return null|bool False on WordPress error. Returns null when displaying. 
    915915 */ 
    916 function the_terms( $id, $taxonomy, $before = '', $sep = ', ', $after = '' ) { 
     916function the_terms( $id = 0, $taxonomy, $before = '', $sep = ', ', $after = '' ) { 
    917917    $term_list = get_the_term_list( $id, $taxonomy, $before, $sep, $after ); 
    918918 
Note: See TracChangeset for help on using the changeset viewer.