Skip to content

Commit

Permalink
Fix class_exists() funcrtion to look for '\Sentry\ClientBuilder'
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Zehngut committed Apr 20, 2023
1 parent 176a5d6 commit 417f38b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bootstrap/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Zeek\WP_Util;

use Zeek\WpSentry\WpSentry;
use function A7\autoload;

function bootstrap( $dir ) {
Expand All @@ -14,7 +13,9 @@ function bootstrap( $dir ) {
/**
* Add Sentry Error Logging
*/
WpSentry::init();
if ( class_exists( '\Sentry\ClientBuilder' ) ) {
\Zeek\WpSentry\WpSentry::init();
}

/**
* Enable WP Util Behaviors
Expand Down

0 comments on commit 417f38b

Please sign in to comment.