wp_iso_descrambler()
Converts to ASCII from email subjects.
Хуков нет.
Возвращает
Строку
. Converted string to ASCII.
Использование
wp_iso_descrambler( $string );
- $string(строка) (обязательный)
- Subject line.
Список изменений
С версии 1.2.0 | Введена. |
Код wp_iso_descrambler() wp iso descrambler WP 6.1.1
function wp_iso_descrambler( $string ) { /* this may only work with iso-8859-1, I'm afraid */ if ( ! preg_match( '#\=\?(.+)\?Q\?(.+)\?\=#i', $string, $matches ) ) { return $string; } else { $subject = str_replace( '_', ' ', $matches[2] ); return preg_replace_callback( '#\=([0-9a-f]{2})#i', '_wp_iso_convert', $subject ); } }