Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#9531 closed defect (bug) (wontfix)

language_attributes() defaults to 'html'

Reported by: CharlesClarkson Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.8
Component: Themes Keywords: has-patch needs-testing
Focuses: Cc:


A lot of theme designers start with the files for Classic or Default themes when creating their theme files.

The language_attributes() in both themes is used with the default 'html' value even though the documents specifically have xhtml DOCTYPEs.

I have searched the internet in hopes of correcting this issue, but it all starts here. language_attributes('xhtml') should be used with xhtml doctypes.

I have attached a diff file with a patch for Classic and for Default.

Attachments (1)

header.diff (1.4 KB) - added by CharlesClarkson 5 years ago.

Download all attachments as: .zip

Change History (3)

CharlesClarkson5 years ago

comment:1 janeforshort5 years ago

  • Keywords has-patch needs-testing added; default classic themes header.php removed

comment:2 Denis-de-Bernardy5 years ago

  • Milestone 2.8 deleted
  • Resolution set to wontfix
  • Status changed from new to closed

-1. if a plugin outputs invalid xhtml, the page won't validate any longer.

Note: See TracTickets for help on using tickets.