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

git-svn-id: https://develop.svn.wordpress.org/trunk@9356 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2008-10-26 13:11:34 +00:00
parent 2f9e6bd6b3
commit 3940c8b9f1

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 ";