This commit is contained in:
2026-05-05 23:42:14 +02:00
parent bafd54b295
commit 53e1bb2fd3
2 changed files with 2 additions and 2 deletions

View File

@@ -155,6 +155,7 @@ add_action('admin_post_nopriv_go_form_submit', 'go_form_handle_submission');
// ========== Shortcode ========== // ========== Shortcode ==========
function go_form_shortcode($atts) { function go_form_shortcode($atts) {
global $ranks;
$form_id = intval(shortcode_atts(['id' => 1], $atts)['id']); $form_id = intval(shortcode_atts(['id' => 1], $atts)['id']);
$msg = ''; $msg = '';

View File

@@ -60,9 +60,8 @@
<select name="rank" id="rank"> <select name="rank" id="rank">
<?php <?php
global $ranks;
foreach ($ranks as $value => $label) { foreach ($ranks as $value => $label) {
echo "<option value='{$value}'>{$label}</option>\n"; echo "<option value='" . esc_attr($value) . "'>" . esc_html($label) . "</option>\n";
} }
?> ?>
</select> </select>