[wp-trac] [WordPress Trac] #17652: get_term_link doesn't accept term_ID
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 2 00:42:09 UTC 2011
#17652: get_term_link doesn't accept term_ID
--------------------------+-----------------------------
Reporter: tomauger | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.1.3
Severity: minor | Keywords:
--------------------------+-----------------------------
global $wp_query;
$term = $wp_query->get_queried_object();
get_term_link($term, $term->taxonomy); // ok
get_term_link($term->slug, $term->taxonomy); // ok
get_term_link($term->term_id, $term->taxonomy); // WP_Error ('Empty Term')
echo ($term->term_id); // ok (echoes correct ID)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17652>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list