robinadr

If you’re using pretty permalinks (as in your permalinks look something like /2007/03/post_slug), you can clean up your WordPress folder a bit by deleting these files:

  • wp-atom.php
  • wp-commentsrss2.php
  • wp-feed.php
  • wp-rss.php
  • wp-rss2.php

This is because as of, I believe, WordPress 2.2, these files are left behind only for legacy purposes — for people without pretty permalinks. The feed files themselves are located in wp-includes/ and with pretty permalinks, WordPress goes right to those files.

In fact, WordPress still senses the request for these files, and redirects them to the appropriate feeds even when you’ve deleted these files.

This doesn’t really save much space, but it does weed out a bit of clutter. I also deleted wp-links-opml.php because I don’t use the links features in WordPress, so it’s useless to me.

4 Comments

  • Easily done with a plugin, but doesn’t seem to be one that I can find. Maybe I’ll whip one up if I get around to it, check back for the next few days.

  • I think I found a temporary solution of deleting the line in the header.php called rss application. It has broken my feed for the time being. It shud be a temporary solution. Let me know once you get around to it….I searched a lot for the plugin, but not much luck. It has something to do with the die(); function. saw it somewhere in the wordpress support. WordPress has decided not to incorporate this feature into the core since it can be done with a plugin, but there is no plugin! :)