Skip to content

Commit

Permalink
bug fix for some hosts: only clean output buffer if it is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jerodsanto committed Sep 29, 2011
1 parent 4f6e71e commit 7b0a627
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion common.php
Expand Up @@ -14,7 +14,10 @@
session_start();
}

ob_end_clean();
if ( ob_get_length() > 0 ) {
ob_end_clean();
}

error_reporting( E_ALL ^ E_PARSE );
set_time_limit( 0 );

Expand Down
2 changes: 0 additions & 2 deletions wordpress-console.php
Expand Up @@ -96,7 +96,5 @@ function WordPressConsole() { // legacy
}
}

error_reporting( E_ALL );
ini_set( 'display_errors', 'On' );
new WordPressConsole;
?>

0 comments on commit 7b0a627

Please sign in to comment.