Skip to content

Commit

Permalink
add: escape data for javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
10upbot on GitHub committed Jan 15, 2024
1 parent 8395719 commit d10a2f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <<<EOD
jQuery(document).ready(function($) {
const deactivateButton = jQuery('#deactivate-distributor');
Expand Down

0 comments on commit d10a2f7

Please sign in to comment.