[wp-trac] [WordPress Trac] #28589: Warning on Usage of WP_Query() with Orderby Array
WordPress Trac
noreply at wordpress.org
Thu Jun 19 18:33:46 UTC 2014
#28589: Warning on Usage of WP_Query() with Orderby Array
--------------------------+-----------------------------
Reporter: behrang | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.9.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When Using Orderby as array, like:
{{{
'orderby' => array(
array(
'meta_key' => 'ereignis-datum',
'field' => 'meta_value_num',
'order' => 'DESC'
)
)
}}}
your get
Warning: urldecode() expects parameter 1 to be string, array given in
/subdomains/muenzenbergforum.de/htdocs/wp-includes/query.php on line 2634
Since several version i'm forced to make @urlencode to avoid having the
warning on the page.
But with every update of course it comes back, since query.php is
overwritten.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28589>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list