diff --git a/fields/acf-base.php b/fields/acf-base.php index 433e2ab..3330414 100644 --- a/fields/acf-base.php +++ b/fields/acf-base.php @@ -43,7 +43,9 @@ function __construct() { function ajax_query() { // validate - if ( ! acf_verify_ajax() ) { + $nonce = acf_request_arg( 'nonce', '' ); + $key = acf_request_arg( 'field_key', '' ); + if ( ! acf_verify_ajax( $nonce, $key ) ) { die(); } @@ -585,4 +587,4 @@ function input_admin_enqueue_scripts() { // Enqueuing wp_enqueue_script( 'acf-input-user-network' ); } -} \ No newline at end of file +}