Show and error in the page title for 404 pages. Fixes #6835.

git-svn-id: http://svn.automattic.com/wordpress/trunk@9356 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2008-10-26 13:11:34 +00:00
parent 9560feaebd
commit c170ec5dce

View File

@ -448,6 +448,10 @@ function wp_title($sep = '»', $display = true, $seplocation = '') {
$title = "$tax $sep $term";
}
if ( is_404() ) {
$title = __('Page not found');
}
$prefix = '';
if ( !empty($title) )
$prefix = " $sep ";