Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#4798 closed defect (bug) (fixed)

Give tag cloud links a particular class

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

Description

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 19 years ago.

Download all attachments as: .zip

Change History (5)

#2 @rob1n
19 years ago

+1 from here as well.

#3 @rob1n
19 years ago

  • Keywords has-patch commit added

#4 @ryan
19 years ago

  • Resolution → fixed
  • Status new → closed

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

Note: See TracTickets for help on using tickets.