[wp-trac] [WordPress Trac] #12089: Unintended blank lines in plugins break XML for feeds

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 15 15:53:31 UTC 2010


#12089: Unintended blank lines in plugins break XML for feeds
--------------------------+-------------------------------------------------
 Reporter:  bchecketts    |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  low           |   Milestone:  3.0
Component:  Feeds         |     Version:     
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------

Comment(by filosofo):

 Replying to [comment:5 miqrogroove]:
 > Still, wouldn't it be nice to catch those closing tag errors using just
 a few extra lines of code?

 In my opinion it would be better to give plugins the necessary feedback
 they need to correct the problem (e.g., "I activated your plugin and my
 feed broke.").

 If we're going to go the route of flushing all output printed before X
 event, we need to do it in a thorough, controlled way, perhaps as part of
 a templating system, not just tacked on to a few arbitrary parts of WP
 (such as feeds).

 Besides, how would you propose to implement this?  If you start output
 buffering say before plugins are loaded, when are you going to flush it in
 the non-feed situations?

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


More information about the wp-trac mailing list