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:
parent
5931a6eafc
commit
10acd7a290
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue