[wp-trac] [WordPress Trac] #34259: Dynamic 'do_feed_{$feed}' action should have a static equivalent

WordPress Trac noreply at wordpress.org
Mon Oct 12 14:08:24 UTC 2015


#34259: Dynamic 'do_feed_{$feed}' action should have a static equivalent
-------------------------------------------------+-------------------------
 Reporter:  slimndap                             |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Feeds                                |  Review
 Severity:  normal                               |     Version:  4.3.1
 Keywords:  needs-patch needs-docs reporter-     |  Resolution:
  feedback                                       |     Focuses:  template
-------------------------------------------------+-------------------------
Changes (by johnbillion):

 * keywords:   => needs-patch needs-docs reporter-feedback


Comment:

 Thanks for the ticket, slimndap.

 Can you explain a little more about how this hook would help your plugin?
 As far as I can tell, your plugin still needs to check the value of
 `$feed`, otherwise it risks outputting data when it shouldn't, for example
 with custom feeds provided by other plugins (a JSON feed being a good
 example), especially ones that don't output XML.

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


More information about the wp-trac mailing list