WordPress.org

Make WordPress Core

Changeset 2164


Ignore:
Timestamp:
01/31/05 03:49:50 (9 years ago)
Author:
saxmatt
Message:

Adding rel tags

File:
1 edited

Legend:

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

    r2160 r2164  
    6363                        $thelist .= get_category_parents($category->category_parent, TRUE); 
    6464                    } 
    65                     $thelist .= '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '">'.$category->cat_name.'</a></li>'; 
     65                    $thelist .= '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '" rel="category tag">'.$category->cat_name.'</a></li>'; 
    6666                    break; 
    6767                case 'single': 
    68                     $thelist .= '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '>'; 
     68                    $thelist .= '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . ' rel="category tag">'; 
    6969                    if ($category->category_parent) { 
    7070                        $thelist .= get_category_parents($category->category_parent, FALSE); 
     
    7474                case '': 
    7575                default: 
    76                     $thelist .= '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '">'.$category->cat_name.'</a></li>'; 
     76                    $thelist .= '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '" rel="category tag">'.$category->cat_name.'</a></li>'; 
    7777            } 
    7878        } 
     
    8686                case 'multiple': 
    8787                    if ($category->category_parent)    $thelist .= get_category_parents($category->category_parent, TRUE); 
    88                     $thelist .= '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '">'.$category->cat_name.'</a>'; 
     88                    $thelist .= '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '" rel="category tag">'.$category->cat_name.'</a>'; 
    8989                    break; 
    9090                case 'single': 
    91                     $thelist .= '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '">'; 
     91                    $thelist .= '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '" rel="category tag">'; 
    9292                    if ($category->category_parent)    $thelist .= get_category_parents($category->category_parent, FALSE); 
    9393                    $thelist .= "$category->cat_name</a>"; 
     
    9595                case '': 
    9696                default: 
    97                     $thelist .= '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '">'.$category->cat_name.'</a>'; 
     97                    $thelist .= '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '" rel="category tag">'.$category->cat_name.'</a>'; 
    9898            } 
    9999            ++$i; 
Note: See TracChangeset for help on using the changeset viewer.