Uses
Uses | Description |
---|---|
wp-includes/formatting.php: wp_unslash() | Remove slashes from a string or array of strings. |
wp-includes/formatting.php: esc_attr() | Escaping for HTML attributes. |
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.
File: wp-admin/includes/template.php
function _admin_search_query() { echo isset( $_REQUEST['s'] ) ? esc_attr( wp_unslash( $_REQUEST['s'] ) ) : ''; }
Version | Description |
---|---|
2.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_admin_search_query