diff --git a/includes/class-wc-webhook.php b/includes/class-wc-webhook.php index 37e377d1fcd..31545e9e73c 100644 --- a/includes/class-wc-webhook.php +++ b/includes/class-wc-webhook.php @@ -11,9 +11,7 @@ * @since 2.2.0 */ -if ( ! defined( 'ABSPATH' ) ) { - exit; // Exit if accessed directly. -} +defined( 'ABSPATH' ) || exit; require_once 'legacy/class-wc-legacy-webhook.php';