sanitize_title_for_query

The timeline below displays how wordpress function sanitize_title_for_query has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 4.1

/**
 * Sanitizes a title with the 'query' context.
 *
 * Used for querying the database for a value from URL.
 *
 * @since 3.1.0
 *
 * @param string $title The string to be sanitized.
 * @return string The sanitized string.
 */
function sanitize_title_for_query($title)
{
    return sanitize_title($title, '', 'query');
}

WordPress Version: 3.7

/**
 * Sanitizes a title with the 'query' context.
 *
 * Used for querying the database for a value from URL.
 *
 * @since 3.1.0
 * @uses sanitize_title()
 *
 * @param string $title The string to be sanitized.
 * @return string The sanitized string.
 */
function sanitize_title_for_query($title)
{
    return sanitize_title($title, '', 'query');
}