[wp-trac] [WordPress Trac] #5155: wp_get_tags
WordPress Trac
wp-trac at lists.automattic.com
Sat Oct 6 18:16:41 GMT 2007
#5155: wp_get_tags
----------------------------+-----------------------------------------------
Reporter: andrewflanagan | Owner: anonymous
Type: defect | Status: new
Priority: low | Milestone: 2.3.1
Component: General | Version: 2.3
Severity: minor | Keywords: tags, tag cloud, array
----------------------------+-----------------------------------------------
wp_tag_cloud('format=array'); will always return "Array" since the array
is not returned but it merely attempts to "echo" the array (which in PHP
will just output "Array"). I don't think that this is the intended
purpose...
I had thought that the purpose of the parameter "format=array" was to get
an actual PHP array of all tags. I can get this tag array by using
get_terms('post_tag', $args);
I tried to slog through the code a little bit (wp-includes/category-
template.php line 310 and on) but it didn't seem to handle the special
case of not "echo"ing a result, but merely returning an array object.
--
Ticket URL: <http://trac.wordpress.org/ticket/5155>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list