From 00baf4c4b0c3865fb34ddb33fb74b809f48d37a6 Mon Sep 17 00:00:00 2001 From: Peter Sorensen Date: Thu, 25 Jul 2024 14:26:09 -0700 Subject: [PATCH] add escaping to class attribute --- includes/classes/AdminCustomizations/EnvironmentIndicator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/classes/AdminCustomizations/EnvironmentIndicator.php b/includes/classes/AdminCustomizations/EnvironmentIndicator.php index a9204b6..977b06a 100644 --- a/includes/classes/AdminCustomizations/EnvironmentIndicator.php +++ b/includes/classes/AdminCustomizations/EnvironmentIndicator.php @@ -40,7 +40,7 @@ public function add_toolbar_item( $admin_bar ) { 'parent' => 'top-secondary', 'title' => '' . esc_html( $this->get_environment_label( $environment ) ) . '', 'meta' => [ - 'class' => "tenup-$environment", + 'class' => esc_attr( "tenup-$environment" ), ], ] );