[wp-trac] [WordPress Trac] #43770: accept 'menu_order' for 'orderby' get_sites() argument

WordPress Trac noreply at wordpress.org
Fri Apr 13 23:53:26 UTC 2018


#43770: accept 'menu_order' for 'orderby' get_sites() argument
--------------------------------+-----------------------------
 Reporter:  gnowland            |      Owner:  (none)
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:  trunk
 Severity:  normal              |   Keywords:
  Focuses:  multisite           |
--------------------------------+-----------------------------
 Trying to show a list of sites in a multisite network with get_sites(),
 using 'menu_order' for the 'orderby' argument does not have any effect
 (sites are instead ordered by id).

 Upon further investigation it appears that 'menu_order' is not one of the
 accepted options for 'orderby' (per codex page for get_sites()).

 Plugins like Intuitive Custom Post Order allow re-ordering of sites, and
 indeed there is a menu_order column in the wp_blogs table with the correct
 order.

 I would like to propose adding 'menu_order' as an accepted option for the
 'orderby' argument of get_sites().

 Would this be possible?

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


More information about the wp-trac mailing list