Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Remove HTML markup in search results/author archive page titles #225

Merged
merged 1 commit into from
Aug 23, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions inc/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function primer_get_the_page_title() {

case is_archive() :

$title = get_the_archive_title();
$title = wp_strip_all_tags( get_the_archive_title() );

break;

Expand All @@ -45,10 +45,7 @@ function primer_get_the_page_title() {
$title = sprintf(
/* translators: search term */
esc_html__( 'Search Results for: %s', 'primer' ),
sprintf(
'<span>%s</span>',
get_search_query()
)
get_search_query()
);

break;
Expand Down