Skip to content

Commit

Permalink
Merge pull request #5 from dol-lab/master
Browse files Browse the repository at this point in the history
fix(acf-base.php): nonces
  • Loading branch information
petitphp authored Jul 11, 2024
2 parents b14d27d + bd87774 commit d84ac0f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fields/acf-base.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down Expand Up @@ -585,4 +587,4 @@ function input_admin_enqueue_scripts() {
// Enqueuing
wp_enqueue_script( 'acf-input-user-network' );
}
}
}

0 comments on commit d84ac0f

Please sign in to comment.