[wp-trac] [WordPress Trac] #23692: feed_links should have a parameter to choose which feed to display

WordPress Trac noreply at wordpress.org
Wed Mar 13 14:12:25 UTC 2013


#23692: feed_links should have a parameter to choose which feed to display
--------------------------------------+------------------------------
 Reporter:  Confridin                 |       Owner:
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Feeds                     |     Version:
 Severity:  minor                     |  Resolution:
 Keywords:  dev-feedback needs-patch  |
--------------------------------------+------------------------------

Comment (by Confridin):

 I think it could be improved this way :


 {{{
 // Default :
 add_theme_support( 'automatic-feed-links');
 // only main feed
 add_theme_support( 'automatic-feed-links', true, false );
 // only comment feed
 add_theme_support( 'automatic-feed-links', false, true);
 // new url for main feed
 add_theme_support( 'automatic-feed-links', 'http://website.com/new-feed-
 url', true);
 // new url for comment feed
 add_theme_support( 'automatic-feed-links', true, 'http://website.com/new-
 feed-url');
 }}}

 What do you think ?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23692#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list