[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:25:59 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:2 miqrogroove]:
 > It would be so easy to fix this.  function activate_plugin() calls
 ob_end_clean() without checking the buffer.  With an if statement a few
 lines above that, WordPress could assert wp_error is returned if the
 buffer isn't empty.  In effect, anyone who tries to activate a plugin that
 dirties the output stream will see a syntax error and the plugin will not
 activate.

 The problem is that often these errors creep in attached to action hooks
 that won't fire during activation.

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


More information about the wp-trac mailing list