Skip to content

Commit

Permalink
Merge pull request roots#893 from RistoNiinemets/master
Browse files Browse the repository at this point in the history
Filter titles
  • Loading branch information
retlehs committed Nov 3, 2013
2 parents e4c3364 + 20f9383 commit 8575130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/titles.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ function roots_title() {
} elseif (is_archive()) {
$term = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy'));
if ($term) {
echo $term->name;
echo apply_filters('single_term_title', $term->name);
} elseif (is_post_type_archive()) {
echo get_queried_object()->labels->name;
echo apply_filters('the_title', get_queried_object()->labels->name);
} elseif (is_day()) {
printf(__('Daily Archives: %s', 'roots'), get_the_date());
} elseif (is_month()) {
Expand Down

0 comments on commit 8575130

Please sign in to comment.