[wp-trac] [WordPress Trac] #51470: [walker-nav-menu] Undefined property stdclass::$current in nav-menu-template.php

WordPress Trac noreply at wordpress.org
Tue Nov 10 02:03:46 UTC 2020


#51470: [walker-nav-menu] Undefined property stdclass::$current in nav-menu-
template.php
--------------------------+----------------------
 Reporter:  rejuancse     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Menus         |     Version:  5.5
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by helen):

 * status:  new => closed
 * version:  trunk => 5.5
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Hello - I take it this is coming from this forum post:
 https://wordpress.org/support/topic/undefined-property-
 stdclasscontainer_aria_label/

 Your plugin needs to either set `container_aria_label` in the nav menu
 args in the filter you are using (appears to be
 `overrite_functions_wp_megamenu()`), or you need to judiciously only set
 the arguments you actually need instead of overwriting the entire array
 before returning.

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


More information about the wp-trac mailing list