Skip to content

Commit a60b823

Browse files
authored
Give each attribute in Edit Flow settings page a different id (#650)
1 parent 124c3cd commit a60b823

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/settings/lib/settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jQuery(document).ready(function(){
2626
var module_action = 'disable';
2727

2828
var slug = jQuery(this).closest('.edit-flow-module').attr('id');
29-
var change_module_nonce = jQuery('#' + slug + ' #change-module-nonce').val();
29+
var change_module_nonce = jQuery('#' + slug + ' #change-module-nonce-' + slug).val();
3030
var data = {
3131
action: 'change_edit_flow_module_state',
3232
module_action: module_action,

modules/settings/settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ function print_modules() {
269269
if ( $mod_data->options->enabled == 'off' ) echo ' style="display:none;"';
270270
echo ' value="' . __( 'Disable', 'edit-flow' ) . '" />';
271271
echo '</p>';
272-
wp_nonce_field( 'change-edit-flow-module-nonce', 'change-module-nonce', false );
272+
wp_nonce_field( 'change-edit-flow-module-nonce', 'change-module-nonce-' . $mod_data->slug, false );
273273
echo '</form>';
274274
echo '</div>';
275275
}

0 commit comments

Comments
 (0)