Skip to content

Commit 8c0152f

Browse files
committed
Update settings form URL
1 parent 05b34b5 commit 8c0152f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

views/setup_page.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
<p class="mc-p"><?php esc_html_e( 'Please select the Mailchimp list you\'d like to connect to your form.', 'mailchimp_i18n' ); ?></p>
125125
<p class="mc-list-note"><strong><?php esc_html_e( 'Note:', 'mailchimp_i18n' ); ?></strong> <?php esc_html_e( 'Updating your list will not remove list settings in this plugin, but changing lists will.', 'mailchimp_i18n' ); ?></p>
126126

127-
<form method="post" action="options-general.php?page=mailchimp_sf_options">
127+
<form method="post" action="<?php echo esc_url( add_query_arg( array( 'page' => 'mailchimp_sf_options' ), admin_url( 'admin.php' ) ) ); ?>">
128128
<?php
129129
// we *could* support paging, but few users have that many lists (and shouldn't)
130130
$lists = $api->get( 'lists', 100, array( 'fields' => 'lists.id,lists.name,lists.email_type_option' ) );
@@ -179,7 +179,7 @@
179179
?>
180180

181181
<p class="submit">
182-
<form method="post" action="options-general.php?page=mailchimp_sf_options">
182+
<form method="post" action="<?php echo esc_url( add_query_arg( array( 'page' => 'mailchimp_sf_options' ), admin_url( 'admin.php' ) ) ); ?>">
183183
<input type="hidden" name="mcsf_action" value="reset_list" />
184184
<input type="submit" name="reset_list" value="<?php esc_attr_e( 'Reset List Options and Select again', 'mailchimp_i18n' ); ?>" class="button" />
185185
<?php wp_nonce_field( 'reset_mailchimp_list', '_mcsf_nonce_action' ); ?>
@@ -200,7 +200,7 @@
200200
?>
201201

202202
<div>
203-
<form method="post" action="options-general.php?page=mailchimp_sf_options">
203+
<form method="post" action="<?php echo esc_url( add_query_arg( array( 'page' => 'mailchimp_sf_options' ), admin_url( 'admin.php' ) ) ); ?>">
204204
<div class="mc-section">
205205
<input type="hidden" name="mcsf_action" value="change_form_settings">
206206
<?php wp_nonce_field( 'update_general_form_settings', '_mcsf_nonce_action' ); ?>

0 commit comments

Comments
 (0)