[wp-trac] [WordPress Trac] #47533: wp_nav_menu() walker parameter breaks selective refresh

WordPress Trac noreply at wordpress.org
Thu Jun 13 06:05:00 UTC 2019


#47533: wp_nav_menu() walker parameter breaks selective refresh
--------------------------+----------------------
 Reporter:  sineway       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Customize     |     Version:  4.5
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------

Comment (by westonruter):

 The easy fix would be to pass a string instead of an instantiated class:

 {{{#!php
 <?php
 wp_nav_menu([
     'walker' => 'Walker_Nav_Menu'
 ]);
 }}}

 That should do it.

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


More information about the wp-trac mailing list