WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 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:

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

Download all attachments as: .zip

Change History (5)

filosofo7 years ago

comment:1 ryan7 years ago

+1

comment:2 rob1n7 years ago

+1 from here as well.

comment:3 rob1n7 years ago

  • Keywords has-patch commit added

comment:4 ryan7 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.