File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments