[wp-trac] [WordPress Trac] #10486: 404 Template Pages

WordPress Trac wp-trac at lists.automattic.com
Sat Jul 25 20:30:37 UTC 2009


#10486: 404 Template Pages
--------------------------+-------------------------------------------------
 Reporter:  dcole07       |       Owner:       
     Type:  defect (bug)  |      Status:  new  
 Priority:  normal        |   Milestone:  2.9  
Component:  Template      |     Version:  2.8.1
 Severity:  normal        |    Keywords:       
--------------------------+-------------------------------------------------
 There is something wrong with how WordPress desides whether to use the 404
 template or not. There are a lot of cases where it uses other templates
 went there is not content.

 How to reproduce:
 Install Wordpress 2.8.X
 Use the Default theme
 Go to ?p=404 or any made up page that isn't real.
 It doesn't go to the 404 template, which it should. It instead uses the
 single template, even though there is no content.

 Themes can do a work-a-around by using an if/else statement and checking
 for content, but that's dumb, when we have a is_404() check. WordPress
 should default to using 404.php (if there is one) and make is_404() true
 before any template file is loaded.

 If this is how the core developers want the 404 to work, then another
 template and template functions should be made, so people can have one
 template to manage URLs that don't have content.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10486>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list