[wp-trac] [WordPress Trac] #29642: Support complex (nested, multiple relation) queries in WP_Meta_Query

WordPress Trac noreply at wordpress.org
Fri Oct 17 19:46:01 UTC 2014


#29642: Support complex (nested, multiple relation) queries in WP_Meta_Query
------------------------------------+------------------------
 Reporter:  boonebgorges            |       Owner:
     Type:  enhancement             |      Status:  reviewing
 Priority:  normal                  |   Milestone:  4.1
Component:  Options, Meta APIs      |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+------------------------

Comment (by jorbin):

 This is causing the Tests_Meta_Query::test_invalid_query_clauses test to
 fail on php 5.2 and 5.3

 see: https://travis-ci.org/aaronjorbin/develop.wordpress/jobs/37875073 and
 https://travis-ci.org/aaronjorbin/develop.wordpress/jobs/37875072

 The above patch fixes this.  The issue comes down to the fact that in php
 changed isset in 5.4 to cause "Checking non-numeric offsets of strings now
 returns FALSE."  see http://php.net/manual/en/function.isset.php

 We thus need to explicitly exclude non arrays.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29642#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list