Ticket #4798 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Give tag cloud links a particular class

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

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

tag_cloud_link_ids.diff (1.1 kB) - added by filosofo on 08/22/07 14:10:57.

Change History

08/22/07 14:10:57 changed by filosofo

  • attachment tag_cloud_link_ids.diff added.

08/22/07 20:39:01 changed by ryan

+1

08/22/07 22:23:06 changed by rob1n

+1 from here as well.

08/22/07 22:23:13 changed by rob1n

  • keywords changed from tag-cloud tags to tag-cloud tags has-patch commit.

08/22/07 22:28:01 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

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