Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#21305 closed enhancement (fixed)

Atom feed alternate type of html_type, not hardcoded text/html

Reported by: niallkennedy's profile niallkennedy Owned by: nacin's profile nacin
Milestone: 3.5 Priority: normal
Severity: trivial Version:
Component: Feeds Keywords: has-patch commit
Focuses: Cc:


When a document of one media type links to another it's possible to provide a media type hint through the type attribute.

In the main Atom feed PHP we point to permalinks and the site URL with a hardcoded type=text/html; the Atom comments feed template uses the more correct html_type reference for better accuracy in the media type hint if publishers have varied from the default of text/html.

Patch Atom feed template to use html_type instead of assuming text/html.

Attachments (1)

feed-atom.diff (1.7 KB) - added by niallkennedy 11 years ago.
html_type instead of text/html

Download all attachments as: .zip

Change History (3)

11 years ago

html_type instead of text/html

#1 @SergeyBiryukov
11 years ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 3.5

#2 @nacin
11 years ago

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

In [21289]:

Use html_type for alternate link elements in atom feeds, as done in atom comment feeds. props niallkennedy. fixes #21305.

Note: See TracTickets for help on using tickets.