[wp-trac] [WordPress Trac] #12364: Deprecate automatic_feed_links() in favor of add_theme_support()
WordPress Trac
wp-trac at lists.automattic.com
Wed Feb 24 14:37:10 UTC 2010
#12364: Deprecate automatic_feed_links() in favor of add_theme_support()
--------------------------+-------------------------------------------------
Reporter: Viper007Bond | Owner: Viper007Bond
Type: enhancement | Status: new
Priority: normal | Milestone: 3.0
Component: Themes | Version: 3.0
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
`add_theme_support()` didn't exist when I wrote `automatic_feed_links()`.
It'd be much more appropriate to use it now. Something like
`add_theme_support( 'automatic-feed-links' )` or something.
As a reminder: `automatic_feed_links()` tells WordPress that your theme
doesn't contain any feed links in it's `<head>` and that WordPress should
dynamically add them itself based on what page the user is viewing. This
isn't done by default to avoid duplicate feed link output in older themes.
Fairly simple change, can be slipped into 3.0 I think. I'll have a patch
ASAP.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12364>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list