mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-02 08:10:04 +00:00
Networks and Sites: Increase sort options in WP_Site_Query.
Add orderby support for the boolean options: deleted, spam, mature, archived and public. Props lenasterg, SergeyBiryukov. Fixes #55226. git-svn-id: https://develop.svn.wordpress.org/trunk@53107 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -139,6 +139,11 @@ class WP_Site_Query {
|
||||
* - 'path_length'
|
||||
* - 'site__in'
|
||||
* - 'network__in'
|
||||
* - 'deleted'
|
||||
* - 'mature'
|
||||
* - 'spam'
|
||||
* - 'archived'
|
||||
* - 'public'
|
||||
* - false, an empty array, or 'none' to disable `ORDER BY` clause.
|
||||
* Default 'id'.
|
||||
* @type string $order How to order retrieved sites. Accepts 'ASC', 'DESC'. Default 'ASC'.
|
||||
@@ -783,6 +788,11 @@ class WP_Site_Query {
|
||||
case 'last_updated':
|
||||
case 'path':
|
||||
case 'registered':
|
||||
case 'deleted':
|
||||
case 'spam':
|
||||
case 'mature':
|
||||
case 'archived':
|
||||
case 'public':
|
||||
$parsed = $orderby;
|
||||
break;
|
||||
case 'network_id':
|
||||
|
||||
Reference in New Issue
Block a user