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

WordPress Trac noreply at wordpress.org
Thu Jun 13 05:20:48 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:
--------------------------+----------------------
Changes (by dlh):

 * status:  new => closed
 * focuses:  ui, administration =>
 * component:  Menus => Customize
 * version:  5.2.1 => 4.5
 * milestone:  Awaiting Review =>
 * resolution:   => invalid


Comment:

 Hi @sineway, and welcome to WordPress Trac!

 The arguments passed to `wp_nav_menu()` need to be JSON-serializable for
 the menu to work with selective refresh.

 The logic for determining whether a `wp_nav_menu()` can be selectively
 refreshed is documented in
 `\WP_Customize_Nav_Menus::filter_wp_nav_menu_args()`:
 https://github.com/WordPress/wordpress-
 develop/blob/8625ca01ec0c7a658ecd57b4ca246faa2a985491/src/wp-includes
 /class-wp-customize-nav-menus.php#L1356-L1384

 For support for individual project, please try
 [https://wordpress.org/support/welcome/ the support forums] or
 [https://wordpress.stackexchange.com WordPress Stack Exchange].

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


More information about the wp-trac mailing list