From e789c15aee86689089559b40be919e540f5c25c4 Mon Sep 17 00:00:00 2001 From: Nate Weller Date: Mon, 7 Oct 2024 21:31:19 -0600 Subject: [PATCH] Ensure constant is set in debug helper --- projects/plugins/debug-helper/modules/class-waf-helper.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/plugins/debug-helper/modules/class-waf-helper.php b/projects/plugins/debug-helper/modules/class-waf-helper.php index c355c8f5d79d1..aa192d93a9100 100644 --- a/projects/plugins/debug-helper/modules/class-waf-helper.php +++ b/projects/plugins/debug-helper/modules/class-waf-helper.php @@ -5,6 +5,7 @@ * @package automattic/jetpack-debug-helper */ +use Automattic\Jetpack\Waf\Waf_Constants; use Automattic\Jetpack\Waf\Waf_Rules_Manager; use Automattic\Jetpack\Waf\Waf_Runner; @@ -223,7 +224,8 @@ public function render_ui() {

Rules Entrypoint

- render_waf_file( defined( 'JETPACK_WAF_ENTRYPOINT' ) && JETPACK_WAF_ENTRYPOINT ); ?> + + render_waf_file( JETPACK_WAF_ENTRYPOINT ) : 'Not set'; ?>