mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 11:46:27 +09:00
Fix nonces added to image uploads
This commit is contained in:
@@ -20,7 +20,7 @@ $nonce = $_POST['_wpnonce'];
|
||||
$ultimatemember->fields->set_id = $_POST['set_id'];
|
||||
$ultimatemember->fields->set_mode = $_POST['set_mode'];
|
||||
|
||||
if ( ! wp_verify_nonce( $nonce, 'um_upload_nonce-'.$timestamp ) ) {
|
||||
if ( ! wp_verify_nonce( $nonce, 'um_upload_nonce-'.$timestamp ) && is_user_logged_in() ) {
|
||||
// This nonce is not valid.
|
||||
$ret['error'] = 'Invalid nonce';
|
||||
die( json_encode( $ret ) );
|
||||
|
||||
Reference in New Issue
Block a user