From c170ec5dce6235419ee0062feb7c1622040746fb Mon Sep 17 00:00:00 2001 From: westi Date: Sun, 26 Oct 2008 13:11:34 +0000 Subject: [PATCH] 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 --- wp-includes/general-template.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index ca9f3b37d..33f8b94e5 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -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 ";