wpseek.com
WordPress开发者和主题制作者的搜索引擎



_admin_search_query › WordPress Function

Since2.7.0
已弃用n/a
_admin_search_query ( 没有参数 )
定义在:
文档:

Displays the search query.

A simple wrapper to display the "s" parameter in a GET URI. This function should only be used when the_search_query() cannot.


源码

function _admin_search_query() {
	echo isset( $_REQUEST['s'] ) ? esc_attr( wp_unslash( $_REQUEST['s'] ) ) : '';
}