sanitize_title_for_query

函数


sanitize_title_for_query ( $title )
参数
  • (string)
    $title
    The string to be sanitized.
    Required:
返回值
  • (string) The sanitized string.
定义位置
  • wp-includes/formatting.php
    , line 2236
引入
3.1.0
弃用

使用 “query”上下文对标题进行净化。

用于从URL查询数据库的值。

function sanitize_title_for_query( $title ) {
	return sanitize_title( $title, '', 'query' );
}