Plugin Directory

Changeset 3343924


Ignore:
Timestamp:
08/13/2025 06:00:29 AM (7 months ago)
Author:
xfive
Message:

minor fixes and adjustments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xfive-sentry-integration/tags/1.1.0/inc/Service/Sentry.php

    r3343525 r3343924  
    111111            }
    112112
    113             $exceptions = $event->getExceptions();
     113            $exceptions  = $event->getExceptions();
     114            $should_stop = false;
    114115
    115116            if ( $exceptions ) {
     
    123124                            $normalized_file = str_replace( '\\', '/', $file );
    124125
    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;
    128129                            }
    129130                        }
    130131                    }
    131132                }
     133            }
     134
     135            if ( $should_stop ) {
     136                return null;
    132137            }
    133138
Note: See TracChangeset for help on using the changeset viewer.