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:
@@ -666,11 +666,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Notices' ) ) {
|
||||
|
||||
|
||||
function dismiss_notice() {
|
||||
$nonce = isset( $_POST["nonce"] ) ? $_POST["nonce"] : "";
|
||||
if ( ! wp_verify_nonce( $nonce, "um-admin-nonce" ) ) {
|
||||
wp_send_json_error( esc_js( __( "Wrong Nonce", 'ultimate-member' ) ) );
|
||||
}
|
||||
|
||||
UM()->admin()->check_ajax_nonce();
|
||||
|
||||
if ( empty( $_POST['key'] ) ) {
|
||||
wp_send_json_error( __( 'Wrong Data', 'ultimate-member' ) );
|
||||
|
||||
Reference in New Issue
Block a user