Skip to content

Commit fe4cbbf

Browse files
committed
Fixing the nonce verification for the submission form.
1 parent 975507b commit fe4cbbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/classes/class-form-submit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function __construct() {
9595
*/
9696
protected function valid_submission() {
9797

98-
if ( ! isset( $_POST['pf-nonce'] ) || false === wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['pf-nonce'] ) ) ) ) {
98+
if ( ! isset( $_POST['pf-nonce'] ) || false === wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['pf-nonce'] ) ), 'pff-paystack-invoice' ) ) {
9999
$this->response['result'] = 'failed';
100100
$this->response['message'] = __( 'Nonce verification is required.', 'pff-paystack' );
101101
return false;

0 commit comments

Comments
 (0)