Advantages and disadvantages of using automatic-feed-links

A long time ago WordPress did not put feed links into the head element automatically. Theme or plugin authors had to do that.

In 2009 automatic_feed_links() was introduced, a function that should be used in themes or plugins to let WordPress do the hard work.

One year later it was added to Twenty Ten, and it became a de facto standard.

Not much later add_theme_support() was implemented and the first function was deprecated in favor of this new super-function which is now part of the theme review guidelines.

But all this happens still to avoid conflicts with pre-2009 themes: WordPress does never create duplicate feed links, unless the author asks for that.

I have questioned this practice. This functionality is not about presentation, and old themes should not have such an impact on the current development. Chip Bennett brought the issue up in his latest discussion about the theme review guidelines.

I guess we can expect some progress here in the near future.

So the advantage is: you get feed links.
The disadvantage: you mix non-presentational functionality into the theme.

Leave a Comment