includes/admin/donors/donor-actions.php 1 location
|
@@ 44-48 (lines=5) @@
|
| 41 |
|
$args = give_clean( $args ); |
| 42 |
|
|
| 43 |
|
// Verify Nonce. |
| 44 |
|
if ( ! wp_verify_nonce( $args['_wpnonce'], 'edit-donor' ) ) { |
| 45 |
|
wp_die( esc_html__( 'Cheatin’ uh?', 'give' ), esc_html__( 'Error', 'give' ), array( |
| 46 |
|
'response' => 400, |
| 47 |
|
) ); |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
$donor_info = $args['donor_info']; |
| 51 |
|
$donor_id = intval( $donor_info['id'] ); |
includes/admin/tools/export/export-actions.php 1 location
|
@@ 25-29 (lines=5) @@
|
| 22 |
|
*/ |
| 23 |
|
function give_process_batch_export_form() { |
| 24 |
|
|
| 25 |
|
if ( ! wp_verify_nonce( $_REQUEST['nonce'], 'give-batch-export' ) ) { |
| 26 |
|
wp_die( esc_html__( 'Nonce verification failed.', 'give' ), esc_html__( 'Error', 'give' ), array( |
| 27 |
|
'response' => 403, |
| 28 |
|
) ); |
| 29 |
|
} |
| 30 |
|
|
| 31 |
|
require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/export/class-batch-export.php'; |
| 32 |
|
|
includes/admin/tools/export/pdf-reports.php 1 location
|
@@ 34-36 (lines=3) @@
|
| 31 |
|
wp_die( __( 'You do not have permission to generate PDF sales reports.', 'give' ), __( 'Error', 'give' ), array( 'response' => 403 ) ); |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
if ( ! wp_verify_nonce( $_GET['_wpnonce'], 'give_generate_pdf' ) ) { |
| 35 |
|
wp_die( __( 'Nonce verification failed.', 'give' ), __( 'Error', 'give' ), array( 'response' => 403 ) ); |
| 36 |
|
} |
| 37 |
|
|
| 38 |
|
if ( ! file_exists( GIVE_PLUGIN_DIR . '/includes/libraries/give-pdf.php' ) ) { |
| 39 |
|
wp_die( __( 'Dependency missing.', 'give' ), __( 'Error', 'give' ), array( 'response' => 403 ) ); |
includes/api/class-give-api.php 1 location
|
@@ 1855-1859 (lines=5) @@
|
| 1852 |
|
*/ |
| 1853 |
|
public function process_api_key( $args ) { |
| 1854 |
|
|
| 1855 |
|
if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'give-api-nonce' ) ) { |
| 1856 |
|
wp_die( __( 'Nonce verification failed.', 'give' ), __( 'Error', 'give' ), array( |
| 1857 |
|
'response' => 403, |
| 1858 |
|
) ); |
| 1859 |
|
} |
| 1860 |
|
|
| 1861 |
|
if ( empty( $args['user_id'] ) ) { |
| 1862 |
|
wp_die( __( 'User ID Required.', 'give' ), __( 'Error', 'give' ), array( |
includes/gateways/manual.php 1 location
|
@@ 37-39 (lines=3) @@
|
| 34 |
|
*/ |
| 35 |
|
function give_manual_payment( $purchase_data ) { |
| 36 |
|
|
| 37 |
|
if ( ! wp_verify_nonce( $purchase_data['gateway_nonce'], 'give-gateway' ) ) { |
| 38 |
|
wp_die( esc_html__( 'Nonce verification failed.', 'give' ), esc_html__( 'Error', 'give' ), array( 'response' => 403 ) ); |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
//Create payment_data array |
| 42 |
|
$payment_data = array( |