Why is there no filter on fill_query_vars() output?
-
The WP_Query->fill_query_vars() method defines all the query variables that WordPress understands by default:
https://core.trac.www.ads-software.com/browser/tags/4.7/src/wp-includes/class-wp-query.php#L564Why is the output array not filtered before it is returned? It seems that it would be a very useful place for _removing_ specific query variables that a website would prefer to not have defined, such as “author”.
I am considering a patch to WordPress Core which would filter this array, but since it seems so obvious I would like to understand more about why the filter doesn’t exist yet before submitting the patch.
Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Why is there no filter on fill_query_vars() output?’ is closed to new replies.