[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 20:50:51 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:  closed
 Priority:  normal        |   Milestone:
Component:  Menus         |     Version:  4.3.1
 Severity:  normal        |  Resolution:  duplicate
 Keywords:  dev-feedback  |     Focuses:  docs, template
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 Replying to [comment:5 Fab1en]:
 > 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.

 Sounds like a duplicate of #24587.

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


More information about the wp-trac mailing list