[wp-trac] [WordPress Trac] #17069: missing get_term_parents() function
WordPress Trac
wp-trac at lists.automattic.com
Fri May 27 07:56:36 UTC 2011
#17069: missing get_term_parents() function
-------------------------+-----------------------------
Reporter: thomask | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: Future Release
Component: Taxonomy | Version: 3.1
Severity: normal | Resolution:
Keywords: |
-------------------------+-----------------------------
Changes (by rafaehlers):
* cc: rafaehlers (added)
Comment:
another argument missing on line 59 on function get_term_link, missed
$taxonomy and use $parent->slug instead.
'''actual''': $chain .= '<a href="' . get_term_link( $parent->term_id ) .
'" title="' . esc_attr( sprintf( __( "View all posts in %s" ),
$parent->name ) ) . '">'.$name.'</a>' . $separator;
'''should be''': $chain .= '<a href="' . get_term_link( '''$parent->slug,
$taxonomy''') . '" title="' . esc_attr( sprintf( __( "View all posts in
%s" ), $parent->name ) ) . '">'.$name.'</a>' . $separator;
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17069#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list