[wp-trac] [WordPress Trac] #42164: Conditional Tags not working when using ugly URL
WordPress Trac
noreply at wordpress.org
Tue Oct 10 13:31:24 UTC 2017
#42164: Conditional Tags not working when using ugly URL
-------------------------------------------------+-------------------------
Reporter: petersplugins | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
Component: Query | Review
Severity: normal | Version: 4.8.2
Keywords: needs-patch needs-unit-tests needs- | Resolution:
testing | Focuses: template
-------------------------------------------------+-------------------------
Changes (by swissspidy):
* keywords: => needs-patch needs-unit-tests needs-testing
Comment:
Should `if ( isset( $tax_query['operator'] ) && 'NOT IN' !=
$tax_query['operator'] )` be changed to `if ( ! isset(
$tax_query['operator'] ) || 'NOT IN' !== $tax_query['operator'] )`? Seems
like this would fix it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42164#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list