Add self parent check

git-svn-id: http://svn.automattic.com/wordpress/trunk@9360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-10-26 18:26:45 +00:00
parent 63d66e8d75
commit cca9311267

View File

@ -62,6 +62,9 @@ function get_category_link( $category_id ) {
return $category;
$category_nicename = $category->slug;
if ( $parent == $category_id ) // recursive recursion
$category->parent = 0;
if ( $parent = $category->parent )
$category_nicename = get_category_parents( $parent, false, '/', true ) . $category_nicename;