[wp-trac] [WordPress Trac] #25263: Use wp_get_nav_menus() instead of get_terms('nav_menu') in WP_Nav_Menu_Widget

WordPress Trac noreply at wordpress.org
Mon Sep 9 11:51:57 UTC 2013


#25263: Use wp_get_nav_menus() instead of get_terms('nav_menu') in
WP_Nav_Menu_Widget
--------------------------+------------------
 Reporter:  Frank Klein   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.7
Component:  Widgets       |     Version:  3.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------
Changes (by SergeyBiryukov):

 * milestone:  Awaiting Review => 3.7


Comment:

 This should probably be `wp_get_nav_menus( array( 'orderby' => 'name' ) )`
 to keep the current ordering (unlike `get_terms()`, `wp_get_nav_menus()`
 uses `'none'` by default).

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25263#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list