[wp-trac] [WordPress Trac] #33665: Menu Customizer: Implement indicators for invalid menu items (was: Menu Customizer: Warning for obsolete items?)

WordPress Trac noreply at wordpress.org
Thu Sep 3 06:32:19 UTC 2015


#33665: Menu Customizer: Implement indicators for invalid menu items
-------------------------+--------------------
 Reporter:  pavelevap    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.4
Component:  Menus        |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+--------------------
Changes (by westonruter):

 * type:  defect (bug) => enhancement
 * milestone:  Awaiting Review => 4.4


Comment:

 Yes, this is something that was left as a todo in the implementation of
 Menus in the Customizer for 4.3, as can be seen here:
 https://core.trac.wordpress.org/browser/tags/4.3/src/wp-includes/class-wp-
 customize-setting.php#L687

 The `wp_setup_nav_menu_item()` function sets an `_invalid` property if the
 object that the item refers to is gone (i.e. obsolete). So this needs to
 be exposed as a read-only property of the `nav_menu_item` setting,
 probably in [https://core.trac.wordpress.org/browser/tags/4.3/src/wp-
 includes/class-wp-customize-setting.php#L856
 WP_Customize_Nav_Menu_Item_Setting::value()]

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


More information about the wp-trac mailing list