ap_verify_default_nonce()
Description #
Verify default ajax nonce field.
Source #
File: includes/functions.php
function ap_verify_default_nonce() { $nonce_name = isset( $_REQUEST['ap_ajax_nonce'] ) ? 'ap_ajax_nonce' : '__nonce'; // input var okay. if ( ! isset( $_REQUEST[ $nonce_name ] ) ) { // input var okay. return false; } return wp_verify_nonce( ap_sanitize_unslash( $nonce_name, 'p' ), 'ap_ajax_nonce' ); }
Expand full source code Collapse full source code View on GitHub: includes/functions.php:993
Add your comment