Multisite: Correct default values for `orderby` and `order` in `WP_Site_Query::__construct()`.

Add a unit test.

Props ramiy, SergeyBiryukov.
See #35791.
Built from https://develop.svn.wordpress.org/trunk@38085


git-svn-id: http://core.svn.wordpress.org/trunk@38026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2016-07-17 23:30:31 +00:00
parent bf24773fc6
commit eca1a22719
2 changed files with 3 additions and 3 deletions

View File

@ -155,8 +155,8 @@ class WP_Site_Query {
'number' => 100,
'offset' => '',
'no_found_rows' => true,
'orderby' => 'ids',
'order' => 'DESC',
'orderby' => 'id',
'order' => 'ASC',
'network_id' => 0,
'network__in' => '',
'network__not_in' => '',

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.6-beta3-38084';
$wp_version = '4.6-beta3-38085';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.