_search_terms_tidy

Formerly used internally to tidy up the search terms.

Description

(string) _search_terms_tidy( (string) $t ); 

Returns (string)

Trimmed search terms.

Parameters (1)

0. $t (string)
Search terms to tidy,, e.g. trim.

Usage

  1. if ( !function_exists( '_search_terms_tidy' ) ) { 
  2. require_once ABSPATH . WPINC . '/deprecated.php'; 
  3.  
  4. // Search terms to "tidy", e.g. trim. 
  5. $t = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = _search_terms_tidy($t); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/deprecated.php  
  1. function _search_terms_tidy( $t ) { 
  2. _deprecated_function( __FUNCTION__, '3.7.0' ); 
  3. return trim( $t, "\"'\n\r " );