wp_iso_descrambler()
wp_iso_descrambler( string $string ) 从电子邮件主题转换为ASCII。 C…
wp_iso_descrambler( string $string )
从电子邮件主题转换为ASCII。
Convert to ASCII from email subjects.
目录锚点:#参数#源码
参数(Parameters)
| 参数 | 类型 | 说明 |
|---|---|---|
| $string | (string) | 主题行 |
源码(Source)
/**
* Convert to ASCII from email subjects.
*
* @since 1.2.0
*
* @param string $string Subject line
* @return string Converted string to ASCII
*/
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 );
}
}| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 1.2.0 | wp-includes/formatting.php | 15 | 14 |
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。





还没有任何评论,赶紧来占个楼吧!