Yeni yüklediğim bir wordpress temada title kısmında 2 defa arka arkaya title yazılıyor. Bunu nasıl düzeltebilirim? Örnek resimler:

http://prntscr.com/4tuh4i
http://prntscr.com/4tuh8p

functions.php dosyası

function whitepaper_wp_title( $title, $sep ) {
	global $paged, $page;
	if ( is_feed() )
		return $title;
	$title .= get_bloginfo( 'name' );
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) )
		$title = "$title $sep $site_description";
	if ( $paged >= 2 || $page >= 2 )
		$title = "$title $sep " . sprintf( __( 'Page %s', 'whitepaper' ), max( $paged, $page ) );
	return $title;
}
title kısmı

<title><?php wp_title( '|', true, 'right' ); ?></title>