mirror of
git://develop.git.wordpress.org/
synced 2025-02-22 07:35:46 +01:00
WP_Query::get_queried_object()
, avoid PHP notices when is_tax
is paired with an empty tax_query
.
It's possible to have an empty `tax_query` and `is_tax=true` when the initial query contains a taxonomy var (and is processed as such during `WP_Query::parse_query()`) but the taxonomy var is unset during a 'parse_query' callback. While this kind of behavior is not necessarily something we need to support, we should continue to avoid PHP notices in such cases, as we did prior to WP 4.1. Fixes #31246. git-svn-id: https://develop.svn.wordpress.org/trunk@31366 602fd350-edb4-49c9-b593-d223f7449a82
Description
No description provided
Languages
PHP
81.5%
CSS
8.9%
JavaScript
8.1%
SCSS
0.8%
HTML
0.7%