Skip to content

Commit

Permalink
Fixes a notice when ob_end_clean is called when no output buffer exis…
Browse files Browse the repository at this point in the history
…ts (#106)
  • Loading branch information
kevinfodness committed Dec 18, 2018
1 parent 1d1682b commit 076fbaa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/wp-cli.php
Expand Up @@ -176,7 +176,9 @@ public function __apply_date_range( $args ) {
* @synopsis [--flush] [--put-mapping] [--bulk=<num>] [--limit=<num>] [--page=<num>] [--after-date=<date>] [--before-date=<date>] [<post-id>...]
*/
public function index( $args, $assoc_args ) {
ob_end_clean();
if ( false !== ob_get_length() ) {
ob_end_clean();
}

$timestamp_start = microtime( true );

Expand Down

0 comments on commit 076fbaa

Please sign in to comment.