Skip to content

Commit

Permalink
pass nonce to verify
Browse files Browse the repository at this point in the history
  • Loading branch information
pkevan committed Dec 11, 2024
1 parent 6a87370 commit e2289a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
function process_badges() {

if ( ! current_user_can( 'manage_options' ) || ! wp_verify_nonce( 'badge-submission' ) ) {
if ( ! current_user_can( 'manage_options' ) || ! wp_verify_nonce( $_POST['_wpnonce'], 'badge-submission' ) ) {
return __( 'Invalid request', 'wordcamporg' );
}

Expand Down

0 comments on commit e2289a4

Please sign in to comment.