wip nonce actually dont work
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<form method="POST">
|
||||
<?php wp_nonce_field('action_name', 'nonce_name'); ?>
|
||||
<form method="POST" action="<?php echo admin_url( 'admin-post.php' ); ?>">
|
||||
<?php wp_nonce_field($nonce['_action'], $nonce['_name']); ?>
|
||||
<!-- https://developer.wordpress.org/reference/hooks/admin_post_action/ -->
|
||||
<input type="hidden" name="action" value="add_patches">
|
||||
<div>
|
||||
<input type="checkbox" id="calculation_patch" name="calculation" checked />
|
||||
<label for="calculation_patch">calculation patch</label>
|
||||
|
||||
Reference in New Issue
Block a user