Skip to content

Commit

Permalink
Stop Whoops Running in plugins folder
Browse files Browse the repository at this point in the history
  • Loading branch information
stewarty authored Apr 23, 2019
1 parent 7698ad3 commit d938cea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pbc-debug-tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
use \Whoops\Run;

$whoops = new \Whoops\Run;
$whoops->silenceErrorsInPaths([ABSPATH . "/content/plugins"]);
$handler = new PrettyPageHandler();
$handler->setApplicationPaths([__FILE__]);
$whoops->pushHandler($handler);
Expand Down

0 comments on commit d938cea

Please sign in to comment.