Missed the cat call.
git-svn-id: https://develop.svn.wordpress.org/trunk@1228 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1205b3d97c
commit
6eae3c0e1e
|
@ -28,7 +28,7 @@ function get_category_link($echo = false, $category_id, $category_nicename) {
|
||||||
$category_nicename = preg_replace( '|[^a-z0-9-]|i', '', $category_nicename );
|
$category_nicename = preg_replace( '|[^a-z0-9-]|i', '', $category_nicename );
|
||||||
// Get any static stuff from the front
|
// Get any static stuff from the front
|
||||||
$front = substr($permalink_structure, 0, strpos($permalink_structure, '%'));
|
$front = substr($permalink_structure, 0, strpos($permalink_structure, '%'));
|
||||||
$link = get_settings('home') . $front . 'category/';
|
$link = get_settings('home') . get_settings('category_base') . '/';
|
||||||
if ($parent=$cache_categories[$category_id]->category_parent) $link .= get_category_parents($parent, FALSE, '/', TRUE);
|
if ($parent=$cache_categories[$category_id]->category_parent) $link .= get_category_parents($parent, FALSE, '/', TRUE);
|
||||||
$link .= $category_nicename . '/';
|
$link .= $category_nicename . '/';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue