[wp-trac] [WordPress Trac] #35203: Capacity to change the type label in set nav menu items in Customize

WordPress Trac noreply at wordpress.org
Tue Dec 22 19:09:57 UTC 2015


#35203: Capacity to change the type label in set nav menu items in Customize
-------------------------+-----------------------------
 Reporter:  joe_bopper   |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Customize    |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 Currently the Customize interface outputs all non-default item type labels
 as "Custom Link" on first load, even though they may have been added by a
 different item type (using the hooks customize_nav_menu_available_items
 and customize_nav_menu_available_item_types). The only thing needed to fix
 this is to add a filter hook into the function
 [https://developer.wordpress.org/reference/classes/wp_customize_nav_menu_item_setting/value_as_wp_post_nav_menu_item/
 wp_customize_nav_menu_item_setting::value_as_wp_post_nav_menu_item], I
 believe. It'd be best to behave similarly to the
 [https://developer.wordpress.org/reference/functions/wp_setup_nav_menu_item/
 wp_setup_nav_menu_item] hook.

 Cheers.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35203>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list