Skip to content

Commit

Permalink
escape widget id in the js
Browse files Browse the repository at this point in the history
  • Loading branch information
rudlinkon committed Sep 9, 2024
1 parent 1574dc8 commit 9e99e2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Elements/Filterable_Gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -3969,7 +3969,7 @@ protected function render_editor_script()
<script type="text/javascript">
jQuery(document).ready(function($) {
$('.eael-filter-gallery-container').each(function() {
var $node_id = '<?php echo $this->get_id(); ?>',
var $node_id = '<?php echo esc_js($this->get_id()); ?>',
$scope = $('[data-id="' + $node_id + '"]'),
$gallery = $(this),
$settings = $gallery.data('settings'),
Expand Down

0 comments on commit 9e99e2d

Please sign in to comment.