Make WordPress Core


Ignore:
Timestamp:
05/11/2009 04:37:42 PM (15 years ago)
Author:
ryan
Message:

Accept only IDs for get_term_link(). Prop filosofo. fixes #9323

File:
1 edited

Legend:

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

    r11204 r11263  
    888888
    889889    foreach ( $terms as $term ) {
    890         $link = get_term_link( $term, $taxonomy );
     890        $link = get_term_link( $term->term_id, $taxonomy );
    891891        if ( is_wp_error( $link ) )
    892892            return $link;
Note: See TracChangeset for help on using the changeset viewer.