Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamadNateqi committed Nov 1, 2024
1 parent f99e16d commit 5e70494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ public function requirement_missing_notice(): void {

// Handle dismissal action
if ( isset( $_GET['wpo_dismiss_requirements_notice'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
if ( isset( $_GET['_wpnonce'] ) && wp_verify_nonce( $_GET['_wpnonce'], 'dismiss_requirements_notice' ) ) {
if ( isset( $_GET['_wpnonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ), 'dismiss_requirements_notice' ) ) {
update_option( 'wpo_wcpdf_dismiss_requirements_notice', true );
wp_redirect( remove_query_arg( array( 'wpo_dismiss_requirements_notice', '_wpnonce' ) ) );
exit;
Expand Down

0 comments on commit 5e70494

Please sign in to comment.