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

WordPress Trac noreply at wordpress.org
Sat Apr 30 22:08:46 UTC 2016


#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:  4.6
Component:  Customize    |     Version:  4.3
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------

Comment (by westonruter):

 @celloexpressions there is already a `wp_setup_nav_menu_item` filter that
 applies in `wp_setup_nav_menu_item()`. This actually will be getting
 called in `WP_Customize_Nav_Menu_Item_Setting::value()` if the initial
 `value` is not passed in up front (to save on performance). So I think
 what is needed is just to apply `wp_setup_nav_menu_item` filters at the
 end of
 `WP_Customize_Nav_Menu_Item_Setting::value_as_wp_post_nav_menu_item()`.
 This should result in the proper `type_label` appearing on the nav menus
 admin page as well.

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


More information about the wp-trac mailing list