Use //IGNORE instead of //TRANSLIT due to it relying on server config which would ignore the flag and throw notices.

This commit is contained in:
Gerhard 2019-04-18 09:26:39 +02:00
parent 5931a6eafc
commit 10acd7a290
1 changed files with 2 additions and 2 deletions

View File

@ -1624,8 +1624,8 @@ function wc_uasort_comparison( $a, $b ) {
*/
function wc_ascii_uasort_comparison( $a, $b ) {
if ( function_exists( 'iconv' ) ) {
$a = iconv( 'UTF-8', 'ASCII//TRANSLIT', $a );
$b = iconv( 'UTF-8', 'ASCII//TRANSLIT', $b );
$a = iconv( 'UTF-8', 'ASCII//IGNORE', $a );
$b = iconv( 'UTF-8', 'ASCII//IGNORE', $b );
}
return strcmp( $a, $b );
}