[wp-trac] [WordPress Trac] #3779: XHTML validation problem with default theme

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 12 15:08:32 GMT 2007


#3779: XHTML validation problem with default theme
----------------------------+-----------------------------------------------
 Reporter:  pishmishy       |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  low             |   Milestone:  2.3      
Component:  Administration  |     Version:  2.1      
 Severity:  minor           |    Keywords:           
----------------------------+-----------------------------------------------
 The default/kubrick Wordpress them doesn't validate as XHTML on some pages
 - it'd be nice if it did. The problem is caused by an empty list on the
 home page of your blog, where a notice would normally appear to inform you
 that you were browsing the archives. The problem code is between lines 14
 and 39 of sidebar.php.

 Replacing line 14 with:


 {{{
 <?php /* if any of these */ if
                         (
                                 is_404()||
                                 is_category()||
                                 is_day()||
                                 is_month()||
                                 is_year()||
                                 is_search()||
                                 (
                                         isset($_GET['paged']) &&
                                         !empty($_GET['paged'])
                                 )
                         )
                                 { ?>
                         <li>
                         <?php }
 }}}
  ?>

 and line 39 with


 {{{
                   <?php /* if any of these */ if
                         (
                                 is_404()||
                                 is_category()||
                                 is_day()||
                                 is_month()||
                                 is_year()||
                                 is_search()||
                                 (
                                         isset($_GET['paged']) &&
                                         !empty($_GET['paged'])
                                 )
                         )
                         { ?>
                         </li>
                         <?php } ?>
 }}}


 Appears to fix the problem. Is this a bug in wordpress or do I need to
 contact the theme's author?

 James

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


More information about the wp-trac mailing list