Changeset 3343924
- Timestamp:
- 08/13/2025 06:00:29 AM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
xfive-sentry-integration/tags/1.1.0/inc/Service/Sentry.php
r3343525 r3343924 111 111 } 112 112 113 $exceptions = $event->getExceptions(); 113 $exceptions = $event->getExceptions(); 114 $should_stop = false; 114 115 115 116 if ( $exceptions ) { … … 123 124 $normalized_file = str_replace( '\\', '/', $file ); 124 125 125 if ( strpos( $normalized_file, '/wp-content/plugins/' ) !== false ) {126 // Skip this error – it's from a plugin.127 return null;126 if ( strpos( $normalized_file, '/wp-content/plugins/' ) !== false && strpos( $normalized_file, '/wp-content/plugins/' . XFIVE_SENTRY_SLUG ) === false ) { 127 $should_stop = true; 128 break; 128 129 } 129 130 } 130 131 } 131 132 } 133 } 134 135 if ( $should_stop ) { 136 return null; 132 137 } 133 138
Note: See TracChangeset
for help on using the changeset viewer.