Make WordPress Core

Changeset 893


Ignore:
Timestamp:
02/20/2004 12:51:52 AM (21 years ago)
Author:
michelvaldrighi
Message:

using "" for html attributes in some functions

File:
1 edited

Legend:

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

    r885 r893  
    6464                case 'multiple':
    6565                    if ($category->category_parent)    echo get_category_parents($category->category_parent, TRUE);
    66                     echo "<a href='" . get_category_link(0, $category->category_id, $category->category_nicename) . "' title='View all posts in $category->cat_name'>$category->cat_name</a></li>";
     66                    echo '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="View all posts in '.$category->cat_name.'">'.$category->cat_name.'</a></li>';
    6767                    break;
    6868                case 'single':
    69                     echo "<a href='" . get_category_link(0, $category->category_id, $category->category_nicename) . "' title='View all posts in $category->cat_name'>";
     69                    echo '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="View all posts in '.$category->cat_name.'>';
    7070                    if ($category->category_parent)echo get_category_parents($category->category_parent, FALSE);
    71                     echo "$category->cat_name</a></li>";
     71                    echo $category->cat_name.'</a></li>';
    7272                    break;
    7373                case '':
    7474                default:
    75                     echo "<a href='" . get_category_link(0, $category->category_id, $category->category_nicename) . "' title='View all posts in $category->cat_name'>$category->cat_name</a></li>";
     75                    echo '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="View all posts in '.$category->cat_name.'">'.$category->cat_name.'</a></li>';
    7676            }
    7777        }
     
    8585                case 'multiple':
    8686                    if ($category->category_parent)    echo get_category_parents($category->category_parent, TRUE);
    87                     echo "<a href='" . get_category_link(0, $category->category_id, $category->category_nicename) . "' title='View all posts in $category->cat_name'>$category->cat_name</a>";
     87                    echo '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="View all posts in '.$category->cat_name.'">'.$category->cat_name.'</a>';
    8888                case 'single':
    89                     echo "<a href='" . get_category_link(0, $category->category_id, $category->category_nicename) . "' title='View all posts in $category->cat_name'>";
    90                     if ($category->category_parent)echo get_category_parents($category->category_parent, FALSE);
     89                    echo '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="View all posts in '.$category->cat_name.'">';
     90                    if ($category->category_parent)    echo get_category_parents($category->category_parent, FALSE);
    9191                    echo "$category->cat_name</a>";
    9292                case '':
    9393                default:
    94                     echo "<a href='" . get_category_link(0, $category->category_id, $category->category_nicename) . "' title='View all posts in $category->cat_name'>$category->cat_name</a>";
     94                    echo '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="View all posts in '.$category->cat_name.'">'.$category->cat_name.'</a>';
    9595            }
    9696            ++$i;
     
    134134    if ($parent->category_parent) $chain .= get_category_parents($parent->category_parent, $link, $separator, $nicename);
    135135    if ($link) {
    136         $chain .= "<a href='" . get_category_link(0, $parent->cat_ID, $parent->category_nicename) . "' title='View all posts in $parent->cat_name'>$name</a>" . $separator;
     136        $chain .= '<a href="' . get_category_link(0, $parent->cat_ID, $parent->category_nicename) . '" title="View all posts in "'.$parent->cat_name.'">'.$name.'</a>' . $separator;
    137137    } else {
    138138        $chain .= $name.$separator;
Note: See TracChangeset for help on using the changeset viewer.