| @@ 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 ) ); |
|
| @@ 1790-1794 (lines=5) @@ | ||
| 1787 | */ |
|
| 1788 | public function process_api_key( $args ) { |
|
| 1789 | ||
| 1790 | if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'give-api-nonce' ) ) { |
|
| 1791 | wp_die( __( 'Nonce verification failed.', 'give' ), __( 'Error', 'give' ), array( |
|
| 1792 | 'response' => 403, |
|
| 1793 | ) ); |
|
| 1794 | } |
|
| 1795 | ||
| 1796 | if ( empty( $args['user_id'] ) ) { |
|
| 1797 | wp_die( __( 'User ID Required.', 'give' ), __( 'Error', 'give' ), array( |
|