Opened 18 years ago
Closed 18 years ago
#5205 closed enhancement (fixed)
RSS2 Feed Enhancement
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.5 | Priority: | low |
Severity: | minor | Version: | 2.3 |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
Description
I was validating my RSS 2 blog and comments feed and came across this recommendation for adding an atom:link to the RSS2 feeds for better portability.
http://feedvalidator.org/docs/warning/MissingAtomSelfLink.html
I patched my install to comply. Diff attached. Keep or toss.
Attachments (1)
Change History (18)
#3
in reply to:
↑ 2
@
18 years ago
Replying to westi:
This looks a bit confusing to me.
Why should an RSS2 feed have an atom element?
Fair question. I was wondering that myself but here's a link to the Best Practices Profile.
http://www.rssboard.org/rss-profile#namespace-elements-atom
#6
@
18 years ago
+1. This simple enhancement makes the RSS 2.0 feeds produced by WordPress completely self-describing. The feeds can be cached and distributed over file-sharing networks and as email attachments without losing the origin of the feed.
#7
@
18 years ago
This is one of those ideas that helps build better feeds. If a site supports Atom this is a way for tools that also support it to find out about it. Does a site "have to" do this, of course not. But does a site have to do feeds either? No, but when templates include feed support by default everyone that uses feeds benefits. I think it's clear we all benefit from feeds. This is a way to increase the value of feeds. Putting it in a default template makes it possible for sites that don't really grasp the value of feeds to add value and audience.
Much like any other metadata, it's only useful when lots of sites make use of it. It's a chicken-and-the-egg sort of situation. No feeds using metadata means tools won't bother either. No tools using it means some sites won't see the value. A circular argument exists and no progress gets made. Put a bit of metadata like this into a feed and suddenly tools start to see info they can use to better assist their users. All the while the site publisher hasn't had to "do anything" other than use the templates and framework.
So is it "necessary"? Perhaps not... but it's a really good idea, one that comes with little or no cost/effort.
#8
follow-up:
↓ 11
@
18 years ago
This could use a tweak. It won't return the proper self-link on the RSS2 category feed using custom permalinks.
#11
in reply to:
↑ 8
;
follow-up:
↓ 12
@
18 years ago
- Keywords needs-patch added; has-patch 2nd-opinion removed
- Owner changed from anonymous to westi
- Status changed from new to assigned
Replying to lexhair:
This could use a tweak. It won't return the proper self-link on the RSS2 category feed using custom permalinks.
Indeed.
Marking back as needs-patch - we need to ensure that we get this right.
#12
in reply to:
↑ 11
@
18 years ago
Replying to westi:
Replying to lexhair:
This could use a tweak. It won't return the proper self-link on the RSS2 category feed using custom permalinks.
Indeed.
Marking back as needs-patch - we need to ensure that we get this right.
I'll leave the diff up. Need to change the bloginfo('rss_url') function in feed-rss2.php to a function that will recognize when a category feed is called. I just don't know enough about the rewrites to develop a new function, if needed.
#15
in reply to:
↑ 14
;
follow-up:
↓ 16
@
18 years ago
Replying to rubys:
wouldn't bloginfo('atom_url') also need fixing?
I looked at feed-atom.php and you are correct. As it is in the trunk, it will not return the correct self link for a category feed. That might be a separate, low level defect ticket since it exists rather than this ticket which is an enhancement to RSS2. JMHO.
#16
in reply to:
↑ 15
@
18 years ago
- Keywords has-patch added; needs-patch removed
Replying to lexhair:
Replying to rubys:
wouldn't bloginfo('atom_url') also need fixing?
I looked at feed-atom.php and you are correct. As it is in the trunk, it will not return the correct self link for a category feed. That might be a separate, low level defect ticket since it exists rather than this ticket which is an enhancement to RSS2. JMHO.
Raised as #5238
This looks a bit confusing to me.
Why should an RSS2 feed have an atom element?