Changes between Initial Version and Version 1 of Ticket #28058, comment 1
- Timestamp:
- 04/29/2014 06:03:57 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28058, comment 1
initial v1 2 2 3 3 That regex (`/[^a-z0-9_\-]/`) removes non-English characters. 4 5 As a workaround this piece of string can be omitted from sanitization. 6 7 {{{ 8 add_filter( 'sanitize_key', 'utf_untouched', 10, 2 ); 9 10 function utf_untouched( $key, $raw_key ) { 11 if ( 'pa_資料庫版本' == $raw_key ) 12 return $raw_key 13 14 return $key 15 } 16 }}}