File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1073,21 +1073,22 @@ public function fulfill_order( $entry ) {
1073
1073
* @return void
1074
1074
*/
1075
1075
public function maybe_display_confirmation () {
1076
- // phpcs:disable WordPress.Security.NonceVerification.Recommended
1076
+ // phpcs:ignore WordPress.Security.NonceVerification.Recommended
1077
1077
if ( ! \array_key_exists ( 'pay_confirmation ' , $ _GET ) ) {
1078
1078
return ;
1079
1079
}
1080
1080
1081
+ // phpcs:ignore WordPress.Security.NonceVerification.Recommended
1081
1082
$ payment_id = (int ) \sanitize_text_field ( \wp_unslash ( $ _GET ['pay_confirmation ' ] ) );
1082
1083
1084
+ // phpcs:ignore WordPress.Security.NonceVerification.Recommended
1083
1085
if ( ! \array_key_exists ( 'hash ' , $ _GET ) ) {
1084
1086
return ;
1085
1087
}
1086
1088
1089
+ // phpcs:ignore WordPress.Security.NonceVerification.Recommended
1087
1090
$ hash = \sanitize_text_field ( \wp_unslash ( $ _GET ['hash ' ] ) );
1088
1091
1089
- // phpcs:enable WordPress.Security.NonceVerification.Recommended
1090
-
1091
1092
if ( \wp_hash ( $ payment_id ) !== $ hash ) {
1092
1093
return ;
1093
1094
}
You can’t perform that action at this time.
0 commit comments