Double bar “|” in title (By WP SEO Yoast?) [closed]

I use this plugin together with TwentyTen too and encountered the same problem.

My solution is to leave wp_title( '|', true, 'right' ); unchanged but only enable the call to function bloginfo() in the next line if plugin WordPress SEO is inactive.

include_once( ABSPATH . 'wp-admin/includes/plugin.php' );

// Add the blog name.
if ( is_plugin_inactive('wordpress-seo/wp-seo.php') ) {
    bloginfo( 'name' );  //this call conflicts with plugin "Wordpress SEO"
}

I don’t use ‘Force rewrite titles’. For the title templates I use %%title%% | %%sitename%%. For the homepage I’ve entered my custom title text.