WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 16 months ago

#24523 closed defect (bug) (fixed)

The "profile" attribute on the head element is obsolete.

Reported by: crashnet Owned by: nacin
Milestone: 3.9 Priority: normal
Severity: normal Version: 3.5.1
Component: Themes Keywords: has-patch
Focuses: template Cc:

Description

if you try to validade an HTML5 doc, as HTML5, via validator.w3.org, you get the following error:

Validation Output: 1 Error

 Line 3, Column 39: The profile attribute on the head element is obsolete. To declare which meta terms are used in the document, instead register the names as meta extensions. To trigger specific UA behaviors, use a link element instead.
<head profile="http://gmpg.org/xfn/11">

<head profile...> comes from /wp-includes/theme-compat/header.php. Looks like the profile should be registered using META.

Attachments (1)

24523.diff (570 bytes) - added by spmlucas 17 months ago.
Moves profile to meta

Download all attachments as: .zip

Change History (7)

comment:1 @WraithKenny2 years ago

Theme's aren't supposed to be relying on theme-compat files anymore. They're very deprecated. A very outdated theme might still rely on it, but for back compat issues, WP doesn't "fix" things like this, since that very outdated theme would have been like that for years now. Recommend "wontfix".

comment:2 @SergeyBiryukov2 years ago

Perhaps theme-compat files should have been left out of [18460].

comment:3 @crashnet2 years ago

Theme in question is Grind, from Themedy, running on Genesis 2.0

comment:4 @nacin17 months ago

  • Component changed from Template to Themes
  • Focuses template added
  • Keywords needs-patch added; 2nd-opinion removed
  • Milestone changed from Awaiting Review to 3.9

I agree with Sergey but we might as well fix this.

@spmlucas17 months ago

Moves profile to meta

comment:5 @spmlucas17 months ago

  • Keywords has-patch added; needs-patch removed

comment:6 @nacin16 months ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In 27716:

Theme compat: Move <head profile> to <link>.

props spmlucas.
fixes #24523.

Note: See TracTickets for help on using tickets.