How does parse_query()'s search_terms parameter work, if at all?
-
The documentation for
parse_queryindicates that it can accept asearch_termsargument, 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_termsis not actually used anywhere.get_postsmay callparse_queryif you also provide thesparameter (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.