[wp-trac] [WordPress Trac] #40947: Backward compatability _sort_nav_menu_items

WordPress Trac noreply at wordpress.org
Fri Nov 3 12:59:11 UTC 2017


#40947: Backward compatability _sort_nav_menu_items
----------------------------------------+------------------------------
 Reporter:  PieWP                       |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Menus                       |     Version:  4.7
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:  docs
----------------------------------------+------------------------------
Changes (by welcher):

 * keywords:  has-patch 2nd-opinion => needs-patch good-first-bug
 * focuses:   => docs


Comment:

 @PieWP I looked into the history here and `_sort_nav_menu_items` was
 deprecated in 4.7 in favor of `wp_list_sort()` and it looks like all
 references to that global only exist in that function.

 I think the fix here is to update the docs for `wp_get_nav_menu_items` to
 remove a references to the global.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40947#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list