Skip to content

Commit

Permalink
Reflect selected tag on the title
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Jun 2, 2023
1 parent cc8b2e6 commit 1170781
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions templates/frontend/main-feed-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@
$title
)
);
} elseif ( $args['friends']->frontend->tag ) {
echo esc_html(
sprintf(
// translators: %1$s is a hash tag, %2$s is a type of feed, e.g. "Main Feed".
_x( '#%1$s on %2$s', '#tag on feed', 'friends' ),
$args['friends']->frontend->tag,
$title
)
);
} else {
echo esc_html( $title );
}
Expand Down

0 comments on commit 1170781

Please sign in to comment.