Recent Posts Widget: Use ob_end_flush()
instead of ob_flush()
.
`ob_end_flush()` flushes the output buffer *and* turns output buffering off, same as `ob_get_flush()`. props m_i_n. see #28009 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@28195 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2d3568380b
commit
0202625937
@ -732,7 +732,7 @@ class WP_Widget_Recent_Posts extends WP_Widget {
|
||||
$cache[ $args['widget_id'] ] = ob_get_flush();
|
||||
wp_cache_set( 'widget_recent_posts', $cache, 'widget' );
|
||||
} else {
|
||||
ob_flush();
|
||||
ob_end_flush();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user