Skip to content

Commit

Permalink
Remove is_array() check from pf_sanitize().
Browse files Browse the repository at this point in the history
Arrays are never passed to this function through PF.

See #1167.
  • Loading branch information
boonebgorges committed Sep 14, 2023
1 parent c95ce77 commit e9280a7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,6 @@ function pf_sanitize( $raw_string, $force_lowercase = true, $strict = false ) {
'?',
);

if ( is_array( $raw_string ) ) {
$raw_string = implode( ' ', $raw_string );
}

$clean = trim( str_replace( $strip, '', wp_strip_all_tags( $raw_string ) ) );
$clean = preg_replace( '/\s+/', '-', $clean );

Expand Down

0 comments on commit e9280a7

Please sign in to comment.