Skip to content

Commit

Permalink
strip html added in title outputs - fixes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
timelsass committed Aug 14, 2019
1 parent 9dc153f commit dd095ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/class-boldgrid-seo-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public function seo_title( $sep = "|" ) {
$content .= "$sep Page " . max( $GLOBALS['paged'], $GLOBALS['page'] );
}

return $content;
return wp_strip_all_tags( $content );
}

public function simplify_archive_title( $title ) {
Expand Down Expand Up @@ -355,7 +355,7 @@ public function meta_site_name( ) {
* @since 1.0.0
* @return void
*/
public function meta_og_title( ) {
public function meta_og_title() {
$content = $this->seo_title( ',' );
if ( is_author() ) {
$content = str_replace( ',', ' |', wp_strip_all_tags( $content ) );
Expand Down

0 comments on commit dd095ef

Please sign in to comment.