[wp-trac] [WordPress Trac] #7165: Allow wp_generate_tag_cloud() to
work with other values than get_tags() return.
WordPress Trac
wp-trac at lists.automattic.com
Sun Jun 22 09:32:59 GMT 2008
#7165: Allow wp_generate_tag_cloud() to work with other values than get_tags()
return.
----------------------+-----------------------------------------------------
Reporter: DD32 | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.6
Component: Template | Version: 2.6
Severity: normal | Keywords: has-patch
----------------------+-----------------------------------------------------
Currently wp_generate_tag_cloud() is hard-coded to utilise get_tags(),
Which for the inbuilt tag clouds are fine, But when a plugin, or core
wants to use a Tagcloud/heatmap, It needs to create its own function.
The attached patch moves all tag logic back into wp_tag_cloud(), and
leaves wp_generate_tag_cloud() mearly generating a tag cloud from the
provided data.
Backwards Compatibility: Back Compat. will be broken for anything which
relies on a text output from wp_generate_tag_cloud(), Could be implemented
at the same time as #5710 (wp_tag_cloud should echo get_tag_cloud)
--
Ticket URL: <http://trac.wordpress.org/ticket/7165>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list