WordPress.org

Make WordPress Core

Changeset 12009


Ignore:
Timestamp:
10/08/09 17:05:32 (6 years ago)
Author:
westi
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/category-template.php

    r11981 r12009  
    675675    $a = array(); 
    676676 
    677     $rel = ( is_object( $wp_rewrite ) && $wp_rewrite->using_permalinks() ) ? ' rel="tag"' : ''; 
    678  
    679677    foreach ( $tags as $key => $tag ) { 
    680678        $count = $counts[ $key ]; 
     
    683681        $tag_id = isset($tags[ $key ]->id) ? $tags[ $key ]->id : $key; 
    684682        $tag_name = $tags[ $key ]->name; 
    685         $a[] = "<a href='$tag_link' class='tag-link-$tag_id' title='" . esc_attr( $topic_count_text_callback( $real_count ) ) . "'$rel style='font-size: " . 
     683        $a[] = "<a href='$tag_link' class='tag-link-$tag_id' title='" . esc_attr( $topic_count_text_callback( $real_count ) ) . "' style='font-size: " . 
    686684            ( $smallest + ( ( $count - $min_count ) * $font_step ) ) 
    687685            . "$unit;'>$tag_name</a>"; 
Note: See TracChangeset for help on using the changeset viewer.