Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#10897 closed defect (bug) (fixed)

tag="rel" should not be used in the tag cloud, since those tags do not describe the current page

Reported by: danielstutzbach's profile DanielStutzbach Owned by: westi's profile westi
Milestone: 2.9 Priority: normal
Severity: normal Version: 2.8.4
Component: Template Keywords:
Focuses: Cc:

Description

Links to tags tags that describe the current page can be marked with rel="tag", to give search engines an extra clue about what the current page is about. The tags in the tag cloud should not be marked with rel="tag", since they do not necessarily describe the current page (effectively diluting the usefulness of the information).

Quoting the HTML 5 spec:
http://www.w3.org/TR/html5/history.html#link-type-tag

"Since it indicates that the tag applies to the current document, it would be inappropriate to use this keyword in the markup of a tag cloud, which lists the popular tag across a set of pages"

Also see the older microformat spec:
http://microformats.org/wiki/rel-tag

Removing the rel="tag" from the tag cloud is a straightforward two-line change in wp_generate_tag_cloud() in category-template.php.

Change History (3)

#1 @westi
16 years ago

  • Milestone changed from Unassigned to 2.9
  • Owner set to westi
  • Status changed from new to accepted

#2 @DanielStutzbach
16 years ago

  • Cc DanielStutzbach added

#3 @westi
16 years ago

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

(In [12009]) Remove rel='tag' on links in Tag Clouds as it is only for outbound links where the destination is a tag for the current page. Fixes #10897.

Note: See TracTickets for help on using tickets.