From 3940c8b9f18546f7a83380d7b4a2ece6549adaac Mon Sep 17 00:00:00 2001 From: Peter Westwood 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: https://develop.svn.wordpress.org/trunk@9356 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 ca9f3b37d1..33f8b94e5f 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 ";