library/Content/PostFilters.php
public function getSearchQuery()
    {
        $searchQuery = '';
        if (!empty(get_search_query())) {
            $searchQuery = get_search_query();
        } elseif (!empty($_GET['s'])) {
            $searchQuery = esc_attr($_GET['s']);
        }

        return $searchQuery;
    }
public function getSearchQuery()
    {
        $searchQuery = '';
        if (!empty(get_search_query())) {
            $searchQuery = get_search_query();
        } elseif (!empty($_GET['s'])) {
            $searchQuery = esc_attr($_GET['s']);
        }

        return $searchQuery;
    }
public function getSearchQuery ( ) { $ searchQuery = '' ; if ( ! empty ( get_search_query ( ) ) ) { $ searchQuery = get_search_query ( ) ; } elseif ( ! empty ( $ _GET [ 's' ] ) ) { $ searchQuery = esc_attr ( $ _GET [ 's' ] ) ; } return $ searchQuery ; }
Returns escaped search query
@return string Search query
Returns escaped search query