Allow wp_generate_tag_cloud() to work with other values than get_tags() return.
|Reported by:||DD32||Owned by:||anonymous|
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)