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:
parent
9560feaebd
commit
c170ec5dce
|
@ -448,6 +448,10 @@ function wp_title($sep = '»', $display = true, $seplocation = '') {
|
||||||
$title = "$tax $sep $term";
|
$title = "$tax $sep $term";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( is_404() ) {
|
||||||
|
$title = __('Page not found');
|
||||||
|
}
|
||||||
|
|
||||||
$prefix = '';
|
$prefix = '';
|
||||||
if ( !empty($title) )
|
if ( !empty($title) )
|
||||||
$prefix = " $sep ";
|
$prefix = " $sep ";
|
||||||
|
|
Loading…
Reference in New Issue