We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3debfc1 commit 9859fcbCopy full SHA for 9859fcb
includes/utils.php
@@ -945,8 +945,9 @@ function is_top_level_admin_context() {
945
* @return array Registered post type names on success, empty array otherwise.
946
*/
947
function get_post_types_for_tax_query( ?\WP_Query $query = null ): array {
948
+ global $wp_query;
949
+
950
if ( null === $query ) {
- global $wp_query;
951
$query = $wp_query;
952
}
953
0 commit comments