[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 07:19:29 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:     
--------------------------+-------------------------------------------------
Changes (by miqrogroove):

  * milestone:  Unassigned => 3.0


Comment:

 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.

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


More information about the wp-trac mailing list