Skip to content

Commit

Permalink
fix(corrections): replace deprecated sanitize method (#3694)
Browse files Browse the repository at this point in the history
This PR replaces the deprecated FILTER_SANITIZE_STRING sanitize flag with FILTER_SANITIZE_FULL_SPECIAL_CHARS.
  • Loading branch information
chickenn00dle authored Jan 23, 2025
1 parent 45b9b5d commit ce50e24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/corrections/class-corrections.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ public static function save_corrections_metabox( $post_id ) {
}

$corrections_active = filter_input( INPUT_POST, self::CORRECTIONS_ACTIVE_META, FILTER_SANITIZE_NUMBER_INT );
$corrections_location = filter_input( INPUT_POST, self::CORRECTIONS_LOCATION_META, FILTER_SANITIZE_STRING );
$corrections_location = filter_input( INPUT_POST, self::CORRECTIONS_LOCATION_META, FILTER_SANITIZE_FULL_SPECIAL_CHARS );
$corrections_data = filter_input_array(
INPUT_POST,
[
Expand Down

0 comments on commit ce50e24

Please sign in to comment.