stayallive / wp-sentry

A (unofficial) WordPress plugin reporting PHP and JavaScript errors to Sentry.
https://wordpress.org/plugins/wp-sentry-integration/
MIT License
320 stars 48 forks source link

Fix for plugin path in documentation #128

Closed alexandre67fr closed 2 years ago

alexandre67fr commented 2 years ago

This file doesn't exist, because the path is wrong :

$wp_sentry = ABSPATH . 'plugins/wp-sentry-integration/wp-sentry.php';

Since it resolves to /installation-folder/plugins/wp-sentry-integration/wp-sentry.php, and wp-content is missing in this path.

In the case of a MU plugin, it should be

$wp_sentry = WP_CONTENT_DIR . '/plugins/wp-sentry-integration/wp-sentry.php';
stayallive commented 2 years ago

Thanks 👍