How does parse_query()'s search_terms parameter work, if at all?
-
The documentation for
parse_query
indicates that it can accept asearch_terms
argument, an array of search terms. Passing this into get_posts() does not impact the results based on my tests.Looking at the code, it looks like
search_terms
is not actually used anywhere.get_posts
may callparse_query
if you also provide thes
parameter (which seems pointless if you’re providingsearch_terms
), and that may <i>set</i>search_terms
, but I don’t see anywhere in query.php that it’s actually used.Can anyone enlighten me?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How does parse_query()'s search_terms parameter work, if at all?’ is closed to new replies.