Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update class-wp-site-query.php - Change function parse_orderby() #2345

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/wp-includes/class-wp-site-query.php
Expand Up @@ -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'.
Expand Down Expand Up @@ -783,6 +788,11 @@ protected function parse_orderby( $orderby ) {
case 'last_updated':
case 'path':
case 'registered':
case 'deleted':
case 'spam':
case 'mature':
case 'archived':
case 'public':
$parsed = $orderby;
break;
case 'network_id':
Expand Down