mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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";
|
||||
}
|
||||
|
||||
if ( is_404() ) {
|
||||
$title = __('Page not found');
|
||||
}
|
||||
|
||||
$prefix = '';
|
||||
if ( !empty($title) )
|
||||
$prefix = " $sep ";
|
||||
|
Loading…
Reference in New Issue
Block a user