_search_terms_tidy()
Deprecated since 3.7.0. It is no longer supported and may 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.
Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.
No Hooks.
Returns
String. Trimmed search terms.
Usage
_search_terms_tidy( $t );
- $t(string) (required)
- Search terms to "tidy", e.g. trim.
Changelog
| Since 2.9.0 | Introduced. |
| Deprecated since | 3.7.0 |
_search_terms_tidy() search terms tidy code WP 6.8.3
function _search_terms_tidy( $t ) {
_deprecated_function( __FUNCTION__, '3.7.0' );
return trim( $t, "\"'\n\r " );
}