WordPress at a glance
function is not described

_search_terms_tidy() WP 2.9.0

Deprecated in 3.7.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Formerly used internally to tidy up the search terms.

No Hooks.


String. Trimmed search terms.


_search_terms_tidy( $t );
$t(string) (required)
Search terms to "tidy", e.g. trim.

Code of search terms tidy: wp-includes/deprecated.php WP 5.2.2

function _search_terms_tidy( $t ) {
	_deprecated_function( __FUNCTION__, '3.7.0' );
	return trim( $t, "\"'\n\r " );