[wp-trac] [WordPress Trac] #14730: ms-files.php required ob_clean() and flush()

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 25 20:46:54 UTC 2011


#14730: ms-files.php required ob_clean() and flush()
--------------------------+-----------------------------
 Reporter:  pj_mfc        |       Owner:  westi
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  Future Release
Component:  Multisite     |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+-----------------------------

Comment (by fuscata):

 @MikeLittle, I think Sergy is correct. You (assuming mikelittle ==
 MikeLittle) are talking about putting a flush() '''after''' the readfile()
 call, while pj_mfc is talking about putting ob_clean() and flush()
 '''before''' the readfile() call.

 I came here to report pj_mfc's problem/solution myself, so can confirm
 both (the problem and the fix).

 As described here: http://core.trac.wordpress.org/ticket/16306 there's not
 much that can be done about errant whitespace in theme/plugin files, so WP
 should clean & flush before the readfile() call.

 And, heck, let's flush() again, as you suggested, in case anything is left
 in the bowl, er, buffer.

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


More information about the wp-trac mailing list