fix ob_end_flush notice

Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to
delete or flush. in `/wp-content/plugins/wp-core/inc/post.php on line
275`