以前在内部用于整理搜索条件。
原型
_search_terms_tidy( string $t )
参数
$t
(string)
(Required)
搜索术语“整洁”,例如修剪。
返回值
(string)
修剪搜索词。
源文件
路径:wp-includes/deprecated.php
<?php
...
function _search_terms_tidy( $t ) {
_deprecated_function( __FUNCTION__, '3.7.0' );
return trim( $t, ""'nr " );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/_search_terms_tidy/