From d10a2f733efbfaa928b4289e59b51dcafcbd36cc Mon Sep 17 00:00:00 2001 From: 10upbot on GitHub <10upbot+github@10up.com> Date: Mon, 15 Jan 2024 11:11:10 +0530 Subject: [PATCH] add: escape data for javascript --- includes/bootstrap.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/bootstrap.php b/includes/bootstrap.php index 4344bf0f4..7a5b5d19c 100644 --- a/includes/bootstrap.php +++ b/includes/bootstrap.php @@ -248,9 +248,9 @@ static function () { } ); - $modal_title = esc_html__( 'Distributor Deactivation', 'distributor' ); - $modal_button_title_deactivate = esc_html__( 'Deactivate', 'distributor' ); - $modal_button_title_cancel = esc_html__( 'Cancel', 'distributor' ); + $modal_title = esc_js( esc_html__( 'Distributor Deactivation', 'distributor' ) ); + $modal_button_title_deactivate = esc_js( esc_html__( 'Deactivate', 'distributor' ) ); + $modal_button_title_cancel = esc_js( esc_html__( 'Cancel', 'distributor' ) ); $script = <<