Opened 18 years ago
Closed 18 years ago
#3779 closed defect (bug) (fixed)
XHTML validation problem with default theme
Reported by: | pishmishy | Owned by: | ryan |
---|---|---|---|
Milestone: | 2.2 | Priority: | low |
Severity: | minor | Version: | 2.1 |
Component: | Template | Keywords: | has-patch |
Focuses: | Cc: |
Description
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
Attachments (1)
Change History (11)
Note: See
TracTickets for help on using
tickets.
WordPress bug as the theme is now managed by WordPress and not the original author.