Skip to content

Commit

Permalink
fix term() to return slug when category
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-barros authored May 15, 2017
1 parent 8f3880a commit e63097b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/Support/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public static function term($output = 'slug')
if (is_category() && $cat = get_category(get_query_var('cat')))
{
$cat->label = $cat->name;
return $output == 'object' ? $cat : $cat->name;
return $output == 'object' ? $cat : $cat->slug;
}
else
{
Expand Down

0 comments on commit e63097b

Please sign in to comment.