[wp-trac] [WordPress Trac] #37136: 'nav_menu_link_attributes' filter is called with $args as an object instead of an array

WordPress Trac noreply at wordpress.org
Mon Jul 3 19:21:40 UTC 2017


#37136: 'nav_menu_link_attributes' filter is called with $args as an object instead
of an array
--------------------------+------------------------------
 Reporter:  Fab1en        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Menus         |     Version:  4.3.1
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |     Focuses:  docs, template
--------------------------+------------------------------
Changes (by Fab1en):

 * version:   => 4.3.1


Comment:

 Thanks @milana_cap for your answer.
 The issue here is not really that the information is deprecated on the old
 codex documentation. The issue is that the filter is called inconsistently
 in two different situations : sometimes, the third argument is an object,
 and sometimes it's an array.

 This issue was present in the version 4.3.1, so I should check if it's
 still present in 4.8.

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


More information about the wp-trac mailing list