wordpress-develop/tests/phpunit/tests/post
Scott Taylor 8ce7c39e44 Allow an array() to be passed as the value for orderby to WP_Query. Allows for an independent order value for each key.
Example: `'orderby' => array( 'title' => 'DESC', 'menu_order' => 'ASC' )`.

Adds docs and unit tests.

Props wonderboymusic, johnbillion, DrewAPicture, dd32, andy.
See #17065.


git-svn-id: https://develop.svn.wordpress.org/trunk@29027 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-08 17:15:53 +00:00
..
attachments.php Reinstate the changes from [28579] with some adjustments: 2014-06-20 18:26:17 +00:00
filtering.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
formats.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
gallery.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
getPages.php Eliminate use of extract() in wp_dropdown_pages(). 2014-05-15 01:11:21 +00:00
listPages.php Add unit tests for wp_list_pages(). 2014-05-15 01:17:37 +00:00
meta.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
nav-menu.php Explicitly assign menu term relationship rather than piggybacking on wp_insert_post() with the tax_input argument. 2014-03-15 06:06:41 +00:00
objects.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
output.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
query.php Allow an array() to be passed as the value for orderby to WP_Query. Allows for an independent order value for each key. 2014-07-08 17:15:53 +00:00
revisions.php This test in post/revisions.php is too misleading and doesn't work as expected since multiple queries can occur before the one that is intended for testing. 2014-07-02 19:56:50 +00:00
slashes.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
template.php Eliminate use of extract() in wp_dropdown_pages(). 2014-05-15 01:11:21 +00:00
types.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00