Sergey Biryukov
c277d565e5
Docs: Clarify the `fields` argument description in `WP_Site_Query::__construct()`.
...
Props ramiy.
See #35791 .
Built from https://develop.svn.wordpress.org/trunk@38103
git-svn-id: http://core.svn.wordpress.org/trunk@38044 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-19 13:15:28 +00:00
Sergey Biryukov
eca1a22719
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
2016-07-17 23:30:31 +00:00
Jeremy Felt
602f231a26
Docs: Correct the description of the `$network_id` in `WP_Site_Query`.
...
Passing 0 for `network_id` results in a query across all networks.
See #35791 .
Built from https://develop.svn.wordpress.org/trunk@38008
git-svn-id: http://core.svn.wordpress.org/trunk@37949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-07 20:36:30 +00:00
Jeremy Felt
d11c9de613
Multisite: Don't store `max_num_pages` in `WP_Site_Query` query cache.
...
This value can be easily calculated with available data.
Props spacedmonkey.
Fixes #35791 .
Built from https://develop.svn.wordpress.org/trunk@38002
git-svn-id: http://core.svn.wordpress.org/trunk@37943 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-07 15:32:29 +00:00
Jeremy Felt
12809c4735
Multisite: Remove unused `site_count` property from `WP_Site_Query`.
...
Related: [37837].
Props flixos90.
See #35791 .
Built from https://develop.svn.wordpress.org/trunk@37875
git-svn-id: http://core.svn.wordpress.org/trunk@37816 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-26 14:33:28 +00:00
Jeremy Felt
6f3f00ea97
Multisite: Change `WP_Network` `id` property to an integer.
...
For consistency and developer sanity.
Props flixos90.
Fixes #37050 .
Built from https://develop.svn.wordpress.org/trunk@37870
git-svn-id: http://core.svn.wordpress.org/trunk@37811 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-26 14:26:29 +00:00
Jeremy Felt
b4df848b6d
Multisite: Add search column support to `WP_Site_Query`.
...
`domain` and/or `path` can be used to specify which column(s) should be searched.
See #35791 .
Built from https://develop.svn.wordpress.org/trunk@37735
git-svn-id: http://core.svn.wordpress.org/trunk@37700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-16 23:09:28 +00:00
Jeremy Felt
2dd1e72f10
Multisite: Introduce `WP_Site_Query`
...
Provides a consistent way to query `$wpdb->blogs` for `WP_Site` objects based on domain, path, site ID, network ID, and more.
Introduces and uses `update_site_cache()` and `_prime_site_caches()` to maintain a cached list of `WP_Site` objects for use in multiple queries.
Props spacedmonkey, flixos90, DrewAPicture, jeremyfelt, ocean90.
See #35791 .
Built from https://develop.svn.wordpress.org/trunk@37477
git-svn-id: http://core.svn.wordpress.org/trunk@37445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-05-20 22:04:27 +00:00