mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- added nonce fields;
This commit is contained in:
@@ -45,6 +45,8 @@ if ( ! class_exists( 'um\core\Profile' ) ) {
|
||||
* Delete profile avatar AJAX handler
|
||||
*/
|
||||
function ajax_delete_profile_photo() {
|
||||
UM()->check_ajax_nonce();
|
||||
|
||||
/**
|
||||
* @var $user_id
|
||||
*/
|
||||
@@ -61,6 +63,8 @@ if ( ! class_exists( 'um\core\Profile' ) ) {
|
||||
* Delete cover photo AJAX handler
|
||||
*/
|
||||
function ajax_delete_cover_photo() {
|
||||
UM()->check_ajax_nonce();
|
||||
|
||||
/**
|
||||
* @var $user_id
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user