[wp-trac] [WordPress Trac] #11588: show_message() should flush the output buffers when its called.
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 24 16:01:28 UTC 2009
#11588: show_message() should flush the output buffers when its called.
----------------------------+-----------------------------------------------
Reporter: dd32 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Administration | Version: 2.9
Severity: normal | Keywords: has-patch
----------------------------+-----------------------------------------------
Comment(by Denis-de-Bernardy):
Replying to [comment:6 dd32]:
> > Up to you. I hook into show_message() using the above-mentioned
function anyway. :-P
>
> I realise that, But this is a defect for a bug in an open source
application that thousands use, Your input is valued, But please do think
of regular users rather than just those of your distribution if you're
going to offer knowledge.
I thought no less, and that was precisely my point in suggesting the above
code. I originally tried to flush things more or less the way you are
suggesting. It only works provided that:
- The server does not enable output buffering
- The server does not gzip the output (meaning it technically ignores
flush() statements)
- The user agent doesn't wait for a certain amount of data before
rendering (which is to say most UA nowadays)
The code I'm suggesting has been evolving since towards early 2007. It has
been tested by hundreds of users.
Again, it's just for information. You're welcome to use any or all of it;
or to ignore it, and delay your arriving to similar code in a few months
or years.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11588#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list