Skip to content

Commit

Permalink
Hotfixes & update texts - fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubboucek committed Mar 15, 2021
1 parent e321685 commit 807bc0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,16 @@ public function publishing_actions() {
<script type='text/javascript'>
var sscContentGroups = [];
sscContentGroups.push({
text: '<?= __( 'Doesn\'t matter', 'simpleshop-cz' ) ?>',
text: '<?= esc_js( __( 'Doesn\'t matter', 'simpleshop-cz' ) )?>',
value: ''
});
<?php
$group = new Group();
$groups = $group->get_groups();
foreach ($groups as $key => $group) { ?>
sscContentGroups.push({
text: '<?php echo $group; ?>',
value: '<?php echo $key; ?>'
text: '<?= esc_js( $group ) ?>',
value: '<?= esc_js( $key ) ?>'
});
<?php } ?>
</script>
Expand Down

0 comments on commit 807bc0e

Please sign in to comment.