Opened 17 years ago
Closed 13 years ago
#4967 closed defect (bug) (fixed)
Obsolete the RSS 0.92 feed
Reported by: | markjaquith | Owned by: | |
---|---|---|---|
Milestone: | 3.3 | Priority: | normal |
Severity: | normal | Version: | 2.8 |
Component: | Feeds | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
in feed-rss.php
<description><?php the_content_rss('', 0, '', get_option('rss_excerpt_length')) ?></description>
That chops the description when offering full feeds (default: 50 words).
It is expected the full feeds not be truncated.
Attachments (7)
Change History (70)
#2
follow-up:
↓ 5
@
17 years ago
-1 to eliminating. I see no harm in keeping it for any poor feed reader stuck in the 90's.
#3
@
16 years ago
- Resolution set to invalid
- Status changed from new to closed
Closed as invalid per #6905.
Description field will always show an excerpt. content:encoded shows the full post when full feed is selected.
#4
@
16 years ago
- Resolution invalid deleted
- Status changed from closed to reopened
- Version changed from 2.3 to 2.6
Reopening, as this is a different issue than in #6905.
The RSS 0.92 feed (feed-rss.php) only contains the description field, it does not have the content:encoded and thus never shows the full text, ever.
So, the ticket might still need to be closed, just not for the reason given.
#5
in reply to:
↑ 2
@
15 years ago
- Milestone 2.9 deleted
- Resolution set to wontfix
- Status changed from reopened to closed
Replying to Viper007Bond:
-1 to eliminating. I see no harm in keeping it for any poor feed reader stuck in the 90's.
+1 to that
#6
@
15 years ago
- Milestone set to 2.9
- Resolution wontfix deleted
- Status changed from closed to reopened
- Version changed from 2.6 to 2.8
Well, the issue still exists. If we're going to keep the old feed around, then it should at least behave properly.
#7
@
15 years ago
- Keywords needs-patch added
- Milestone changed from 2.9 to Future Release
if a volunteer ever shows up...
#11
follow-up:
↓ 13
@
15 years ago
- Keywords dev-feedback added
I think the RSS 0.92 feed should be dropped. Many users have confused it with the RSS 2 feed and subscribed to it or burnt it with FeedBurner. Such confusion is fairly unnecessary.
Feed readers that do not support RSS 2 should have been phased out by the market as most feeds are now in RSS 2 or Atom 1.
#13
in reply to:
↑ 11
;
follow-up:
↓ 14
@
15 years ago
- Keywords dev-feedback removed
Replying to peaceablewhale:
I think the RSS 0.92 feed should be dropped.
this idea got rejected a few weeks back
#15
@
15 years ago
http://core.trac.wordpress.org/ticket/4967#comment:2
I suspect his opinion will be shared by many
#16
@
15 years ago
Not agreeing... RSS 2 is actually a superset of RSS 0.92 and feed readers that do not support RSS 2 should have been phased out.
#17
@
15 years ago
Mm... And adding to this, more people would be complaining about RSS 0.92 if it were used. You've my vote to dump it.
#19
@
15 years ago
- Keywords has-patch needs-review added; needs-patch removed
I have uploaded a patch that redirects RSS 0.92 to RSS 2, unless a plugin chnages the variable.
#20
@
15 years ago
- Keywords needs-patch added; has-patch needs-review removed
I'd suggest using wp_query->get_queried_object_id() directly instead of adding a new function. Also, can you double check that the str_replace of amps is needed? esc_url() would add the hex value instead, so it's presumably unnecessary.
Suggesting we bring getting rid of RSS 0.92 up during the next IRC meet-up, too.
#21
follow-up:
↓ 22
@
15 years ago
get_query_object_id is used in #9510 as well. It's useful for getting the id of the query.
The str_replace is necessary because the URLs returned by the get_xxx_feed_link functions are HTML/XML encoded, the str_replace is used for converting "&" back to "&". It seems that esc_url does not do do, please let me know if it does and I will correct the patch.
Again, I am afraid that I cannot join the IRC chat due to timezone difference :(
#22
in reply to:
↑ 21
@
15 years ago
Replying to peaceablewhale:
get_query_object_id is used in #9510 as well. It's useful for getting the id of the query.
I still think it's not needed. better use wp_the_query->get_queried_object_id() imo.
The str_replace is necessary because the URLs returned by the get_xxx_feed_link functions are HTML/XML encoded, the str_replace is used for converting "&" back to "&". It seems that esc_url does not do do, please let me know if it does and I will correct the patch.
what might be needed is an extra param for these functions instead, then, e.g. escape = true or context = display, and use esc_url()/esc_url_raw() depending on the context.
Again, I am afraid that I cannot join the IRC chat due to timezone difference :(
ok, I'll bring it up for you.
#24
@
15 years ago
said Mark:
ddebernardy: I'm finally leaning towards yes on dropping those old formats. The argument was that it wasn't hurting anything. But if we have to expend effort fixing them...
#25
@
15 years ago
said westi:
ddebernardy: I am happy to drop them if we have all the hooks in place (I think we do) to allow a plugin to bring them back
said rboren:
Worth considering for 2.9 , I reckon. Not something that gets me worked up either way.
#27
@
15 years ago
@Denis-de-Bernardy:
Thanks you for CC-ing the IRC log here!
@Anybody:
Please let me know if there is any change needed in the patch :)
#28
@
15 years ago
- Severity changed from normal to major
- Summary changed from RSS feed is never full to Obsolete the RSS 0.92 feed
#29
@
15 years ago
- Keywords needs-patch 2nd-opinion added; has-patch needs-review removed
@peaceablewhale - Imo, we'd want to do this:
- drop the feed-rss.php and feed-rdf.php files
- deprecate all functions that are only used in those two (such as the_content_rss(), make_url_footnote(), etc.)
- make sure we don't default to rss or rdf in whatever functions (there's a ticket or two on this, and you added a patch I believe)
- most importantly (westi's comment), make sure a plugin can make it possible to create and use site.com/feed/rdf and site.com/feed/rss
I also suggest you leave it untouched for a small week, in case a 2nd opinion shows up.
#30
@
15 years ago
feed-rdf.php belongs to the RSS 1 feed. Do you mean that it is going to be dropped as well?
Functions that needing a change in the default are get_the_category_rss() and the_category_rss(), which is managed in #5802.
The current patch doesn't actually remove the RSS 0.92 feed. It just redirects to the RSS 2 feed unless a plugin instructs not to do so.
I will leave this report untouched until a new opionion is received.
#31
@
15 years ago
Redirecting to RSS 2 seems reasonable to me. Should be committed so that it is available for testing. Remove of the then obsolete code can be done then.
#35
in reply to:
↑ 32
@
15 years ago
- Keywords 2nd-opinion needs-review removed
Replying to peaceablewhale:
I will leave this report untouched until a new opionion is received.
no review until today. any suggestion with that what we have so far? or close as wontfix?
#36
follow-ups:
↓ 37
↓ 38
@
15 years ago
It doesn't seem clear: is the RSS 0.92 feed currently broken / not fully working? If no, then why remove it?
If it is broken and it's not a simple fix, then I vote remove it. Just because it's old isn't a good reason to remove it, however investing time in something that no one uses anymore and a plugin could add back if it was really wanted is a good reason to remove it.
Seems fairly cut and dry.
#37
in reply to:
↑ 36
@
15 years ago
Replying to Viper007Bond:
It doesn't seem clear: is the RSS 0.92 feed currently broken / not fully working? If no, then why remove it?
If it is broken and it's not a simple fix, then I vote remove it. Just because it's old isn't a good reason to remove it, however investing time in something that no one uses anymore and a plugin could add back if it was really wanted is a good reason to remove it.
The reasoning was it's partially broken (due to the use of the_content_rss filter, etc.), and we didn't want to maintain it any longer.
#38
in reply to:
↑ 36
;
follow-up:
↓ 40
@
15 years ago
Replying to Viper007Bond:
It doesn't seem clear: is the RSS 0.92 feed currently broken / not fully working?
Yes, it is still broken and has been for 2+ years now.
Short version: RSS 0.92 feed does not respect the "Full Text" setting for feeds. It always displays only the excerpt.
Why this is a pain in the ass: People often use /feed/rss mistakenly, thus getting the RSS 0.92 feed instead of the RSS 2 feed, and then complain that the Full Text setting is broken. They then refuse to believe us when we tell them that it's not broken and that they're doing it wrong.
Why this can't be easily fixed: RSS 0.92 couldn't handle full text. The description field was supposed to be short, thus the use of the_excerpt. Also thus the use of content:encoded for the full text in RSS 2.
If it is broken and it's not a simple fix, then I vote remove it.
This is why that was my original suggestion 2 years ago. Nobody should be using it for anything at all, ever. Also, the RSS 2 feed is backwards compatible. Any feed readers that are stuck in the stone ages of 5 years ago should still be able to read that feed.
Ditto for the RDF feed, it's pointless to have it there at all and it only causes problems and difficulties when people accidentally use it.
Just because it's old isn't a good reason to remove it, however investing time in something that no one uses anymore and a plugin could add back if it was really wanted is a good reason to remove it.
A plugin could easily add these back, along with any other feeds they like via the handy-dandy add_feed() function. Although, again, there is no sane reason to do so.
So, my vote:
- Remove feed-rss.php and feed-rdf.php and associated tomfoolery.
- Change the do_feed_rdf and do_feed_rss actions to point to the do_feed_rss2 function (it is backwards compatible).
- Eliminate the do_feed_rdf and do_feed_rss functions entirely. No deprecation is needed for these.
Seems fairly cut and dry.
Yep.
#39
@
15 years ago
4967.diff is a patch for trunk that removes the rdf and rss feeds, shifting requests for them to the rss2 feed instead.
The feed-rdf.php and feed-rss.php files can be removed along with this patch.
#40
in reply to:
↑ 38
@
15 years ago
Replying to Otto42:
So, my vote:
- Remove feed-rss.php and feed-rdf.php and associated tomfoolery.
Sounds good to me.
#41
@
15 years ago
Bump. Do we want to push this into 3.0? I suggest this so it can happen before feature freeze.
#42
@
14 years ago
- Keywords dev-feedback early added
- Milestone changed from 3.0 to 3.1
Bumping to 3.1 early due to lack of activity.. A decision needs to be reached.
#43
@
14 years ago
I updated my Atom default feed plugin to get rid of these superfluous feeds (as well as make Atom the default feed format). Anybody having issues with these outdated feed types can use that for now:
http://wordpress.org/extend/plugins/atom-default-feed/
#44
@
14 years ago
Please do obsolete the RSS 0.92 feed... it is so confusing that even Microsoft has used it...
See http://windowslivehelp.com/thread.aspx?threadid=2911f6f5-5c81-4e5f-902a-189ec09238b7
#46
@
14 years ago
- Keywords commit added; dev-feedback early removed
- Milestone changed from Awaiting Triage to 3.1
Let's do it. Marking for commit for Peter, Mark, or Ryan.
#50
@
13 years ago
While it's nice to remove the feed from loading like this what about redirecting urls etc.
Should we do that too?
#51
@
13 years ago
A 301 redirect to /feed/rss2 or just plain /feed wouldn't be amiss, but that would depend on support for redirects existing in RSS readers. Google Reader handles it, couldn't say about anything else.
#52
@
13 years ago
If certain feed consumers don't support 301s, that could lead to negative consequences. I don't think duplicate content is such a worry for XML feeds.
#53
@
13 years ago
Arguing against myself. We already do feed redirects. /feed/rss2/ redirects to /feed/ already. Haven't noticed any issues.
#54
follow-up:
↓ 55
@
13 years ago
Hmnnn, I'm sure this has come up before (but can't find the relevant ticket).
Shouldn't feeds be "themeable"? After all, there are many reasons (branding, specific content requirements, etc) that themes may want to tweak the output of the various feeds.
So why not make the search for a feed look first in the theme template directory (or perhaps better a "feeds" subdirectory of that), falling back on the standard location if no template is found.
You can then remove the obsolete feeds from the standard location, but if a theme wants to resurrect one, or customise it in some way, it need only create the appropriate template itself.
This might sound like a new ticket, but really it's just a different way of removing the feeds whilst retaining some mechanism for them to be returned.
#55
in reply to:
↑ 54
@
13 years ago
Replying to mdgl:
Shouldn't feeds be "themeable"? After all, there are many reasons (branding, specific content requirements, etc) that themes may want to tweak the output of the various feeds.
If a theme wants to modify the feed, they can do so already. They have hooks to modify the existing feeds extensively, and if they really, really want to do so, they can add functionality to call add_feed and replace the existing feeds with functions of their own.
No real need for making them "themeable".
#59
@
13 years ago
- Resolution fixed deleted
- Severity changed from major to normal
- Status changed from closed to reopened
Totally fine removing and redirecting 0.92, and there are lots of reasons above, but disagree with removing the RDF format. It is not at all compatible with RSS 2.0 so redirecting may break stuff, and it's only 54 lines of code, and I'm not aware of any current bugs with it, and if there were they would be trivial to fix because it's only 54 lines. :)
My suggestion: keep the .92 removal, revert the RDF 1.0 removal, and strongly consider adding a JSON format, which would be really fun for scripting.
#62
@
13 years ago
The rationale was that it hasn't been a promoted feed format for a long time, and we couldn't find any consumers that supported that format, but not other formats. It's pretty much all RSS 2.0 or Atom these days. No strong feelings about it — we were just in feed deprecation mode, and no one wanted to champion RDF. It can come back. If it's coming back, it should come back ASAP... before our next beta.
+1 on JSON (but not for 3.3 — don't want to rush getting the details of the format ironed out).
Does anybody use the RSS 0.92 feed for anything, ever?
Suggest eliminating it entirely.