[wp-trac] [WordPress Trac] #18239: wp_ob_end_flush_all() hangs the output buffering, during plugin update/install
WordPress Trac
wp-trac at lists.automattic.com
Sun Oct 2 16:34:25 UTC 2011
#18239: wp_ob_end_flush_all() hangs the output buffering, during plugin
update/install
-----------------------------+------------------------------
Reporter: mamborambo | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 3.2.1
Severity: minor | Resolution:
Keywords: output hangs |
-----------------------------+------------------------------
Comment (by Tom Braider):
no solution this time?
this works for me on plugin update page.
changed misc.php from
{{{
function show_message($message) {
...
echo "<p>$message</p>\n";
wp_ob_end_flush_all();
flush();
}
}}}
to
{{{
function show_message($message) {
...
ob_start();
echo "<p>$message</p>\n";
wp_ob_end_flush_all();
ob_start();
}
}}}
changes functions.php from
{{{
function wp_ob_end_flush_all() {
$levels = ob_get_level();
for ($i=0; $i<=$levels; $i++)
ob_end_flush();
}
}}}
to
{{{
function wp_ob_end_flush_all() {
$levels = ob_get_level();
for ($i=0; $i<=$levels; $i++)
if (ob_get_length())
{
@ob_end_flush();
@ob_flush();
@flush();
}
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18239#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list