WordPress.org

Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#8017 closed defect (bug) (fixed)

invalid feed enclosure for audio

Reported by: hailin Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

in wp-includes/feed/, function rss_enclosure() generates enclosure tag with type= multiple values. Eg:

<enclosure url="http://www.fileden.com/files/2008/4/7/1855511/Music/B52s%20-%20B52s%20-%2002%20-%2052%20Girls.mp3" length="5176006" type="audio/mpeg mpga mp2 mp3" />

This fails feed validation service, such as:
http://validator.w3.org/feed/check.cgi

The proposed fix is always to use the first entry out of the list.

Attachments (1)

8017_feed.diff (952 bytes) - added by hailin 11 years ago.
patch

Download all attachments as: .zip

Change History (3)

@hailin
11 years ago

patch

#1 @ryan
11 years ago

  • Milestone changed from 2.8 to 2.7

#2 @ryan
11 years ago

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

(In [9501]) Use only one enclosure type. Props hailin. fixes #8017

Note: See TracTickets for help on using tickets.