Skip to content

Commit

Permalink
Fix adjustment of error for deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
dshanske committed Oct 1, 2023
1 parent 1c80bad commit 1fd4ee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-kind-media-metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public static function wp_sanitize_media_metadata( $metadata ) {
$value = wp_sanitize_media_metadata( $value );
} elseif ( is_string( $value ) && preg_match( '~[^\x20-\x7E\t\r\n]~', $value ) > 0 ) {
$encoding = mb_detect_encoding( $value, 'ISO-8859-1, UCS-2' );
$value = $encoding ? mb_convert_encoding( $value, 'UTF-8', $encoding ) $value;
$value = $encoding ? mb_convert_encoding( $value, 'UTF-8', $encoding ) : $value;
}
$metadata[ $name ] = $value;
}
Expand Down

0 comments on commit 1fd4ee2

Please sign in to comment.