[wp-trac] [WordPress Trac] #15313: Allow wp_tag_cloud() to accept an array of taxonomies
WordPress Trac
wp-trac at lists.automattic.com
Thu Nov 4 06:03:42 UTC 2010
#15313: Allow wp_tag_cloud() to accept an array of taxonomies
-------------------------+--------------------------------------------------
Reporter: sorich87 | Owner: sorich87
Type: enhancement | Status: accepted
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.1
Severity: normal | Keywords: has-patch
-------------------------+--------------------------------------------------
Comment(by sorich87):
It is actually assumed that {{{$args['taxonomy']}}} is always a string.
So, it is passed to {{{get_term_link()}}} which only accept a string as
second argument.
When {{{$args['taxonomy']}}} is not a string but an array, we get an
error.
Replacing {{{$args['taxonomy']}}} by {{{$tag->taxonomy}}} fixes the issue.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15313#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list