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

WordPress Trac noreply at wordpress.org
Wed Nov 12 02:45:40 UTC 2014


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

Comment (by jrf):

 My two pennies: I'd prefer Joost's patch as it'll be simpler in practical
 usage. See the below comparison of code needed to disable the comments
 feed.

 Joost's patch:

 {{{
 add_filter( 'automatic_feed_links_show_comments_feed', '__return_false' );
 }}}


 Julio's patch:


 {{{
 add_filter( 'feed_links_types', 'my_feed_filter_function' );
 function my_feed_filter_function( $array ) {
         $array['comments'] = false;
         return $array;
 }

 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/23692#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list