Skip to content

Commit

Permalink
Add a // phpcs:ignore <sniff> -- <explanation> comment.
Browse files Browse the repository at this point in the history
The contents of the variable are sanitized in `AspireUpdate\Admin_Settings::sanitize_settings()`.
  • Loading branch information
costdev committed Nov 5, 2024
1 parent ee159a0 commit c78e62f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions includes/class-admin-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@ public function update_settings() {

// Save settings and redirect.
if ( ( isset( $_POST['option_page'], $_POST['aspireupdate_settings'] ) && 'aspireupdate_settings' === $_POST['option_page'] ) ) {
update_site_option(
$this->option_name,
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Contents are sanitized in Admin_Settings::sanitize_settings.
$this->sanitize_settings( wp_unslash( $_POST['aspireupdate_settings'] ) )
);

wp_safe_redirect(
add_query_arg( [ network_admin_url( 'index.php?page=aspireupdate-settings' ) ] )
Expand Down

0 comments on commit c78e62f

Please sign in to comment.