[wp-trac] Re: [WordPress Trac] #5031: Tag Cloud styles are hardcoded
WordPress Trac
wp-trac at lists.automattic.com
Fri Sep 21 16:25:00 GMT 2007
#5031: Tag Cloud styles are hardcoded
--------------------------+-------------------------------------------------
Reporter: technosailor | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.4
Component: General | Version: 2.3
Severity: normal | Resolution:
Keywords: |
--------------------------+-------------------------------------------------
Comment (by technosailor):
The code for creating gradient colors for such a routine strikes me as
bloat. I tried to write some test code a variety of different ways and
ended up ripping code from php.net instead. Even that is 'thick' code. My
sample script for feedback:
http://pastebin.ca/706051
And the display:
http://technosailor.com/hextest.php
It's not WP code but could be integrated. The gradient code is more
excessive than I'd prefer (and I think most devs would agree), but I toss
it out there as an option. As I see it, we could just pass optional
start_color and end_color vars into wp_generate_tag_cloud() with defaults
of 000000 and 000000. That shouldn't spoil the status quo at all but would
allow tag cloud "colors".
Thoughts?
--
Ticket URL: <http://trac.wordpress.org/ticket/5031#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list