Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#4798 closed defect (bug) (fixed)

Give tag cloud links a particular class

Reported by: filosofo Owned by:
Milestone: 2.3 Priority: normal
Severity: normal Version: 2.3
Component: Administration Keywords: tag-cloud tags has-patch commit
Focuses: Cc:


The tag cloud links needs some way to identify the term ids of its links, in case one wants to do ajaxy things with the tag cloud.

My attached patch adds a class to the link in the form of class="tag-link-5" where that link's term id is 5. (I've used class instead of id because someone might invoke wp_generate_tag_cloud more than once per page with different arguments, which could duplicate ids).

Attachments (1)

tag_cloud_link_ids.diff (1.1 KB) - added by filosofo 14 years ago.

Download all attachments as: .zip

Change History (5)

#2 @rob1n
14 years ago

+1 from here as well.

#3 @rob1n
14 years ago

  • Keywords has-patch commit added

#4 @ryan
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [5917]) Add class to tag cloud links. Props filosofo. fixes #4798

Note: See TracTickets for help on using tickets.