diff --git a/wp-includes/template-functions-links.php b/wp-includes/template-functions-links.php index ba58a4c90..c3a9c4602 100644 --- a/wp-includes/template-functions-links.php +++ b/wp-includes/template-functions-links.php @@ -56,6 +56,8 @@ function get_permalink($id = false) { $cats = get_the_category($idpost->ID); $category = $cats[0]->category_nicename; + if ($parent=$cats[0]->category_parent) $category = get_category_parents($parent, FALSE, '/', TRUE) . $category; + $authordata = get_userdata($idpost->post_author); $author = $authordata->user_nicename; $rewritereplace =