[wp-trac] [WordPress Trac] #55226: Update class-wp-site-query.php - Change function parse_orderby()

WordPress Trac noreply at wordpress.org
Tue Feb 22 14:31:34 UTC 2022


#55226: Update class-wp-site-query.php - Change function parse_orderby()
--------------------------------+-----------------------------
 Reporter:  lenasterg           |      Owner:  (none)
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:
 Severity:  normal              |   Keywords:
  Focuses:                      |
--------------------------------+-----------------------------
 This is a follow-up to #26580.
 Currently there isn't allowed to sort the site query based on the
 'deleted' field which is striped from the "orderby" keys due to
 parse_orderby() function.

 In order to have plugins that give the ability to add filters to the sites
 list to sort deleted/active sites, we need the 'deleted' field of wp_blogs
 table to be sortable.

 A possible solution suggestion into the following PR

 https://github.com/WordPress/wordpress-develop/pull/2345

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55226>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list