function to list all (true) conditionals (in an array)
|Reported by:||F J Kaiser||Owned by:||F J Kaiser|
Often we need to check against a lot of conditionals. It would be handy to have one "mother" function to retrieve those query conditionals that are set true with a single call.
The attached patch introduces a new function get_conditionals(); that returns a numerical indexed array containing all object parts of $GLOBALS['wp_query']; that start with is_ and are set to true.