[wp-trac] [WordPress Trac] #15533: wp_get_nav_menu_items order doesn't work
    WordPress Trac 
    noreply at wordpress.org
       
    Sun Jun 25 19:36:47 UTC 2017
    
    
  
#15533: wp_get_nav_menu_items order doesn't work
--------------------------+---------------------------
 Reporter:  markoheijnen  |       Owner:  DrewAPicture
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.9
Component:  Menus         |     Version:  3.0
 Severity:  normal        |  Resolution:  fixed
 Keywords:  needs-docs    |     Focuses:
--------------------------+---------------------------
Changes (by DrewAPicture):
 * owner:   => DrewAPicture
 * status:  assigned => closed
 * resolution:   => fixed
Comment:
 In [changeset:"40942"]:
 {{{
 #!CommitTicketReference repository="" revision="40942"
 Docs: Add full documentation for arguments accepted by
 `wp_get_nav_menu_items()`.
 Also provide differentiation between arguments as passed to `get_posts()`
 vs used for ordering outputted menu items.
 By and large, arguments in the `$args` array are intended to directly
 affect how nav_menu_item posts are retrieved. When the default ARRAY_A is
 used for 'output', the 'order' and 'orderby' arguments are essentially
 ignored, instead giving preference to a hard-coded order of 'ASC' and an
 orderby value derived from the non-get_posts() argument 'output_key'.
 Fixes #15533.
 }}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/15533#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list